fix: Wait for room invite before open in pushhelper
This commit is contained in:
parent
d1e211adee
commit
0301c83f40
1 changed files with 5 additions and 0 deletions
|
|
@ -328,6 +328,11 @@ class BackgroundPush {
|
|||
}
|
||||
await client.roomsLoading;
|
||||
await client.accountDataLoading;
|
||||
if (client.getRoomById(roomId) == null) {
|
||||
await client
|
||||
.waitForRoomInSync(roomId)
|
||||
.timeout(const Duration(seconds: 30));
|
||||
}
|
||||
FluffyChatApp.router.go(
|
||||
client.getRoomById(roomId)?.membership == Membership.invite
|
||||
? '/rooms'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue