diff --git a/lib/utils/background_push.dart b/lib/utils/background_push.dart index a7ce8c6de..1ba2659a6 100644 --- a/lib/utils/background_push.dart +++ b/lib/utils/background_push.dart @@ -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'