mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 08:25:12 +00:00
fix: Open notification for invite crashes app
This commit is contained in:
parent
e70ecfcf04
commit
8f66cad58b
1 changed files with 5 additions and 1 deletions
|
@ -313,7 +313,11 @@ class BackgroundPush {
|
|||
}
|
||||
await client.roomsLoading;
|
||||
await client.accountDataLoading;
|
||||
FluffyChatApp.router.go('/rooms/$roomId');
|
||||
FluffyChatApp.router.go(
|
||||
client.getRoomById(roomId)?.membership == Membership.invite
|
||||
? '/rooms'
|
||||
: '/rooms/$roomId',
|
||||
);
|
||||
} catch (e, s) {
|
||||
Logs().e('[Push] Failed to open room', e, s);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue