chore: Update local notifications package

This commit is contained in:
Christian Pauly 2022-10-17 17:48:38 +02:00
commit 65511ca114
6 changed files with 23 additions and 22 deletions

View file

@ -250,7 +250,7 @@ class BackgroundPush {
return;
}
_wentToRoomOnStartup = true;
goToRoom(details.payload);
goToRoom(details.notificationResponse);
});
}
@ -294,8 +294,9 @@ class BackgroundPush {
);
}
Future<void> goToRoom(String? roomId) async {
Future<void> goToRoom(NotificationResponse? response) async {
try {
final roomId = response?.payload;
Logs().v('[Push] Attempting to go to room $roomId...');
if (router == null || roomId == null) {
return;