fix: remove pusher format (#3848)
This commit is contained in:
parent
ffe5c22e9e
commit
4175179144
2 changed files with 15 additions and 8 deletions
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue