Fix dismissing existing room modal

This commit is contained in:
Robert Long 2022-01-05 11:52:50 -08:00
parent 3d3663c540
commit 3ec01293e6
2 changed files with 2 additions and 0 deletions

View file

@ -40,6 +40,7 @@ export function RegisteredView({ client }) {
submit().catch((error) => {
if (error.errcode === "M_ROOM_IN_USE") {
setExistingRoomId(roomAliasFromRoomName(roomName));
setLoading(false);
setError(undefined);
modalState.open();
} else {

View file

@ -52,6 +52,7 @@ export function UnauthenticatedView() {
submit().catch((error) => {
if (error.errcode === "M_ROOM_IN_USE") {
setExistingRoomId(roomAliasFromRoomName(roomName));
setLoading(false);
setError(undefined);
modalState.open();
} else {