diff --git a/src/components/structures/MatrixChat.tsx b/src/components/structures/MatrixChat.tsx index ea65224454..eb59675d0c 100644 --- a/src/components/structures/MatrixChat.tsx +++ b/src/components/structures/MatrixChat.tsx @@ -1109,6 +1109,7 @@ export default class MatrixChat extends React.PureComponent { } this.setStateForNewView({ view: Views.WELCOME, + currentRoomId: null, }); this.notifyNewScreen("welcome"); ThemeController.isLogin = true; @@ -1118,6 +1119,7 @@ export default class MatrixChat extends React.PureComponent { private viewLogin(otherState?: any): void { this.setStateForNewView({ view: Views.LOGIN, + currentRoomId: null, ...otherState, }); this.notifyNewScreen("login"); @@ -1949,9 +1951,9 @@ export default class MatrixChat extends React.PureComponent { private setPageSubtitle(): void { const params: { - $brand: string, - $status: string, - $room_name: string|undefined, + $brand: string; + $status: string; + $room_name: string|undefined; } = { $brand: SdkConfig.get().brand, $status: this.subTitleStatus,