fix: Join new room after room upgrade
This commit is contained in:
parent
1305171219
commit
200f2c34be
1 changed files with 6 additions and 1 deletions
|
|
@ -1103,13 +1103,18 @@ class ChatController extends State<ChatPageWithRoom>
|
|||
}
|
||||
|
||||
void goToNewRoomAction() async {
|
||||
final newRoomId = room
|
||||
.getState(EventTypes.RoomTombstone)!
|
||||
.parsedTombstoneContent
|
||||
.replacementRoom;
|
||||
final result = await showFutureLoadingDialog(
|
||||
context: context,
|
||||
future: () => room.client.joinRoomById(
|
||||
future: () => room.client.joinRoom(
|
||||
room
|
||||
.getState(EventTypes.RoomTombstone)!
|
||||
.parsedTombstoneContent
|
||||
.replacementRoom,
|
||||
via: [newRoomId.domain!],
|
||||
),
|
||||
);
|
||||
if (result.error != null) return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue