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 {
|
void goToNewRoomAction() async {
|
||||||
|
final newRoomId = room
|
||||||
|
.getState(EventTypes.RoomTombstone)!
|
||||||
|
.parsedTombstoneContent
|
||||||
|
.replacementRoom;
|
||||||
final result = await showFutureLoadingDialog(
|
final result = await showFutureLoadingDialog(
|
||||||
context: context,
|
context: context,
|
||||||
future: () => room.client.joinRoomById(
|
future: () => room.client.joinRoom(
|
||||||
room
|
room
|
||||||
.getState(EventTypes.RoomTombstone)!
|
.getState(EventTypes.RoomTombstone)!
|
||||||
.parsedTombstoneContent
|
.parsedTombstoneContent
|
||||||
.replacementRoom,
|
.replacementRoom,
|
||||||
|
via: [newRoomId.domain!],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
if (result.error != null) return;
|
if (result.error != null) return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue