Fix dismissing existing room modal
This commit is contained in:
parent
3d3663c540
commit
3ec01293e6
2 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue