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
}
@@ -482,7 +482,7 @@ class BackgroundPush {
482
482
);
483
483
// UP may strip the devices list
484
484
data['devices' ] ?? = [];
485
- await pushHelper (
485
+ await PushHelper . pushHelper (
486
486
PushNotification .fromJson (data),
487
487
clients: clients,
488
488
instance: instance,
You can’t perform that action at this time.
0 commit comments