mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Disable Local Push Notifications + Start Handling invite notifications (#882)
* disabled local pushes and fixed the issue with the image rendering * disabled local notifications for now and started implementing invite notificatons * disabled local notifications for now and started implementing invite notificatons * removed code that should not have changed * removed useless comment * refactored name for category * fixed a test * fix * fix for missing try await * pr comments
This commit is contained in:
@@ -125,9 +125,9 @@ extension UNMutableNotificationContent {
|
||||
iconType: NotificationIconType) async throws -> UNMutableNotificationContent {
|
||||
var image: INImage?
|
||||
if let mediaSource = iconType.mediaSource {
|
||||
switch await mediaProvider?.loadFileFromSource(mediaSource) {
|
||||
case .success(let mediaFile):
|
||||
image = try INImage(imageData: Data(contentsOf: mediaFile.url))
|
||||
switch await mediaProvider?.loadImageDataFromSource(mediaSource) {
|
||||
case .success(let data):
|
||||
image = INImage(imageData: data)
|
||||
case .failure(let error):
|
||||
MXLog.error("Couldn't add sender icon: \(error)")
|
||||
case .none:
|
||||
|
||||
Reference in New Issue
Block a user