|
|
|
@ -116,7 +116,9 @@ Future<void> _tryPushHelper(
|
|
|
|
notification.counts?.unread == 0) {
|
|
|
|
notification.counts?.unread == 0) {
|
|
|
|
await flutterLocalNotificationsPlugin.cancelAll();
|
|
|
|
await flutterLocalNotificationsPlugin.cancelAll();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
// Make sure client is fully loaded and synced before dismiss notifications:
|
|
|
|
await client.roomsLoading;
|
|
|
|
await client.roomsLoading;
|
|
|
|
|
|
|
|
await client.oneShotSync();
|
|
|
|
final activeNotifications =
|
|
|
|
final activeNotifications =
|
|
|
|
await flutterLocalNotificationsPlugin.getActiveNotifications();
|
|
|
|
await flutterLocalNotificationsPlugin.getActiveNotifications();
|
|
|
|
for (final activeNotification in activeNotifications) {
|
|
|
|
for (final activeNotification in activeNotifications) {
|
|
|
|
|