File tree 2 files changed +317
-310
lines changed
2 files changed +317
-310
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ class BackgroundPush {
81
81
);
82
82
Logs ().v ('Flutter Local Notifications initialized' );
83
83
firebase? .setListeners (
84
- onMessage: (message) => pushHelper (
84
+ onMessage: (message) => PushHelper . pushHelper (
85
85
PushNotification .fromJson (
86
86
Map <String , dynamic >.from (message['data' ] ?? message),
87
87
),
@@ -260,7 +260,7 @@ class BackgroundPush {
260
260
if (endpoint != null ) {
261
261
matrix! .store.setString (
262
262
clients.first.clientName + SettingKeys .unifiedPushEndpoint,
263
- endpoint);
263
+ endpoint, );
264
264
matrix! .store.remove (SettingKeys .unifiedPushEndpoint);
265
265
}
266
266
@@ -269,7 +269,7 @@ class BackgroundPush {
269
269
if (registered != null ) {
270
270
matrix! .store.setBool (
271
271
clients.first.clientName + SettingKeys .unifiedPushRegistered,
272
- registered);
272
+ registered, );
273
273
matrix! .store.remove (SettingKeys .unifiedPushRegistered);
274
274
}
275
275
}
@@ -477,7 +477,7 @@ class BackgroundPush {
477
477
);
478
478
// UP may strip the devices list
479
479
data['devices' ] ?? = [];
480
- await pushHelper (
480
+ await PushHelper . pushHelper (
481
481
PushNotification .fromJson (data),
482
482
clients: clients,
483
483
instance: instance,
You can’t perform that action at this time.
0 commit comments