refactor: active room ID now only in defined in the path
This commit is contained in:
parent
dca23d3819
commit
18abb21cdb
5 changed files with 8 additions and 8 deletions
|
|
@ -586,8 +586,10 @@ class BackgroundPush {
|
|||
await room.postLoad();
|
||||
final event = await client.database.getEventById(client.id, eventId, room);
|
||||
|
||||
if (((client.activeRoomId?.isNotEmpty ?? false) &&
|
||||
client.activeRoomId == room.id &&
|
||||
final activeRoomId = router.currentState.pathParameters['roomid'];
|
||||
|
||||
if (((activeRoomId?.isNotEmpty ?? false) &&
|
||||
activeRoomId == room.id &&
|
||||
client.syncPresence == null) ||
|
||||
(event != null && room.notificationCount == 0)) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue