fix: remove pusher format (#3848)

This commit is contained in:
ggurdin 2025-09-02 16:37:18 -04:00 committed by GitHub
parent ffe5c22e9e
commit 4175179144
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 8 deletions

View file

@ -53,10 +53,12 @@ enum AppSettings<T> {
'https://sygnal.pangea.chat/_matrix/push/v1/notify',
// Pangea#
),
pushNotificationsPusherFormat<String>(
'pushNotificationsPusherFormat',
'event_id_only',
),
// #Pangea
// pushNotificationsPusherFormat<String>(
// 'pushNotificationsPusherFormat',
// 'event_id_only',
// ),
// Pangea#
shareKeysWith<String>('chat.fluffy.share_keys_with_2', 'all'),
noEncryptionWarningShown<bool>(
'chat.fluffy.no_encryption_warning_shown',

View file

@ -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',