refactor: Use hashcode instead of string to id workaround for notifications

This commit is contained in:
Krille 2024-02-20 16:10:22 +01:00
commit d2a58422b4
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
2 changed files with 3 additions and 30 deletions

View file

@ -112,8 +112,7 @@ class BackgroundPush {
Future<void> cancelNotification(String roomId) async {
Logs().v('Cancel notification for room', roomId);
final id = await mapRoomIdToInt(roomId);
await FlutterLocalNotificationsPlugin().cancel(id);
await FlutterLocalNotificationsPlugin().cancel(roomId.hashCode);
// Workaround for app icon badge not updating
if (Platform.isIOS) {