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:
Mauro
2023-05-12 12:45:59 +02:00
committed by GitHub
parent 185710adf4
commit 23137726de
9 changed files with 133 additions and 74 deletions
@@ -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: