refactor: Use hashcode instead of string to id workaround for notifications
This commit is contained in:
parent
d6e797b04b
commit
d2a58422b4
2 changed files with 3 additions and 30 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue