mirror of
https://github.com/krille-chan/fluffychat
synced 2024-10-05 13:52:46 +00:00
chore: Follow up dismiss notifications logic
This commit is contained in:
parent
0eaa7aa73e
commit
bb3865757b
1 changed files with 2 additions and 0 deletions
|
@ -116,7 +116,9 @@ Future<void> _tryPushHelper(
|
|||
notification.counts?.unread == 0) {
|
||||
await flutterLocalNotificationsPlugin.cancelAll();
|
||||
} else {
|
||||
// Make sure client is fully loaded and synced before dismiss notifications:
|
||||
await client.roomsLoading;
|
||||
await client.oneShotSync();
|
||||
final activeNotifications =
|
||||
await flutterLocalNotificationsPlugin.getActiveNotifications();
|
||||
for (final activeNotification in activeNotifications) {
|
||||
|
|
Loading…
Reference in a new issue