fix: Join new room after room upgrade

This commit is contained in:
krille-chan 2025-05-15 14:54:08 +02:00
parent 1305171219
commit 200f2c34be
No known key found for this signature in database

View file

@ -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;