From 4175179144c8a9de00f6dae66302980a3e3fa25e Mon Sep 17 00:00:00 2001 From: ggurdin <46800240+ggurdin@users.noreply.github.com> Date: Tue, 2 Sep 2025 16:37:18 -0400 Subject: [PATCH] fix: remove pusher format (#3848) --- lib/config/setting_keys.dart | 10 ++++++---- lib/utils/background_push.dart | 13 +++++++++---- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/lib/config/setting_keys.dart b/lib/config/setting_keys.dart index 19c30084f..0fdd737e8 100644 --- a/lib/config/setting_keys.dart +++ b/lib/config/setting_keys.dart @@ -53,10 +53,12 @@ enum AppSettings { 'https://sygnal.pangea.chat/_matrix/push/v1/notify', // Pangea# ), - pushNotificationsPusherFormat( - 'pushNotificationsPusherFormat', - 'event_id_only', - ), + // #Pangea + // pushNotificationsPusherFormat( + // 'pushNotificationsPusherFormat', + // 'event_id_only', + // ), + // Pangea# shareKeysWith('chat.fluffy.share_keys_with_2', 'all'), noEncryptionWarningShown( 'chat.fluffy.no_encryption_warning_shown', diff --git a/lib/utils/background_push.dart b/lib/utils/background_push.dart index 64e6ab54e..8b2bfea40 100644 --- a/lib/utils/background_push.dart +++ b/lib/utils/background_push.dart @@ -290,8 +290,11 @@ class BackgroundPush { // Pangea# currentPushers.first.data.url.toString() == gatewayUrl && currentPushers.first.data.format == - AppSettings.pushNotificationsPusherFormat - .getItem(matrix!.store) && + // #Pangea + // AppSettings.pushNotificationsPusherFormat + // .getItem(matrix!.store) && + null && + // Pangea# mapEquals( currentPushers.single.data.additionalProperties, {"data_message": pusherDataMessageFormat}, @@ -334,8 +337,10 @@ class BackgroundPush { // Pangea# data: PusherData( url: Uri.parse(gatewayUrl!), - format: AppSettings.pushNotificationsPusherFormat - .getItem(matrix!.store), + // #Pangea + // format: AppSettings.pushNotificationsPusherFormat + // .getItem(matrix!.store), + // Pangea# additionalProperties: {"data_message": pusherDataMessageFormat}, ), kind: 'http',