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) => {
|
submit().catch((error) => {
|
||||||
if (error.errcode === "M_ROOM_IN_USE") {
|
if (error.errcode === "M_ROOM_IN_USE") {
|
||||||
setExistingRoomId(roomAliasFromRoomName(roomName));
|
setExistingRoomId(roomAliasFromRoomName(roomName));
|
||||||
|
setLoading(false);
|
||||||
setError(undefined);
|
setError(undefined);
|
||||||
modalState.open();
|
modalState.open();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -52,6 +52,7 @@ export function UnauthenticatedView() {
|
||||||
submit().catch((error) => {
|
submit().catch((error) => {
|
||||||
if (error.errcode === "M_ROOM_IN_USE") {
|
if (error.errcode === "M_ROOM_IN_USE") {
|
||||||
setExistingRoomId(roomAliasFromRoomName(roomName));
|
setExistingRoomId(roomAliasFromRoomName(roomName));
|
||||||
|
setLoading(false);
|
||||||
setError(undefined);
|
setError(undefined);
|
||||||
modalState.open();
|
modalState.open();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue