|
|
@ -289,13 +289,13 @@ class BackgroundPush {
|
|
|
|
Future<void> goToRoom(String? roomId) async {
|
|
|
|
Future<void> goToRoom(String? roomId) async {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
Logs().v('[Push] Attempting to go to room $roomId...');
|
|
|
|
Logs().v('[Push] Attempting to go to room $roomId...');
|
|
|
|
if (router == null) {
|
|
|
|
if (router == null || roomId == null) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
await client.roomsLoading;
|
|
|
|
await client.roomsLoading;
|
|
|
|
await client.accountDataLoading;
|
|
|
|
await client.accountDataLoading;
|
|
|
|
final isStory = client
|
|
|
|
final isStory = client
|
|
|
|
.getRoomById(roomId!)
|
|
|
|
.getRoomById(roomId)
|
|
|
|
?.getState(EventTypes.RoomCreate)
|
|
|
|
?.getState(EventTypes.RoomCreate)
|
|
|
|
?.content
|
|
|
|
?.content
|
|
|
|
.tryGet<String>('type') ==
|
|
|
|
.tryGet<String>('type') ==
|
|
|
|