mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Notification Handler to handle notifications in foreground (#837)
* changed how the notifications are handled * local notifications can be decrypted and shown! * Improved the handling for the mock and for the normal messages * Avatar images are also displayed * pr ready, commented some code that is not supposed to be releaaed yet, adjusted some tests and added some source code in the targets * fixing some swiftlint complaints and removed an unused function * better swiftlint disable * addressing PR comments
This commit is contained in:
@@ -36,8 +36,8 @@ extension FileManager {
|
||||
try createDirectory(at: url, withIntermediateDirectories: withIntermediateDirectories)
|
||||
}
|
||||
|
||||
func copyFileToTemporaryDirectory(file url: URL) throws -> URL {
|
||||
let newURL = URL.temporaryDirectory.appendingPathComponent(url.lastPathComponent)
|
||||
func copyFileToTemporaryDirectory(file url: URL, with filename: String? = nil) throws -> URL {
|
||||
let newURL = URL.temporaryDirectory.appendingPathComponent(filename ?? url.lastPathComponent)
|
||||
|
||||
try? removeItem(at: newURL)
|
||||
try copyItem(at: url, to: newURL)
|
||||
|
||||
Reference in New Issue
Block a user