mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 08:15:09 +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.roomsLoading;
|
||||||
await client.accountDataLoading;
|
await client.accountDataLoading;
|
||||||
FluffyChatApp.router.go('/rooms/$roomId');
|
FluffyChatApp.router.go(
|
||||||
|
client.getRoomById(roomId)?.membership == Membership.invite
|
||||||
|
? '/rooms'
|
||||||
|
: '/rooms/$roomId',
|
||||||
|
);
|
||||||
} catch (e, s) {
|
} catch (e, s) {
|
||||||
Logs().e('[Push] Failed to open room', e, s);
|
Logs().e('[Push] Failed to open room', e, s);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue