Skip to content

Commit c4138a3

Browse files
committed
clear current room in two more contexts.
1 parent f99de0b commit c4138a3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/components/structures/MatrixChat.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
11121112
}
11131113
this.setStateForNewView({
11141114
view: Views.WELCOME,
1115+
currentRoomId: null,
11151116
});
11161117
this.notifyNewScreen("welcome");
11171118
ThemeController.isLogin = true;
@@ -1121,6 +1122,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
11211122
private viewLogin(otherState?: any): void {
11221123
this.setStateForNewView({
11231124
view: Views.LOGIN,
1125+
currentRoomId: null,
11241126
...otherState,
11251127
});
11261128
this.notifyNewScreen("login");
@@ -1957,9 +1959,9 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
19571959

19581960
private setPageSubtitle(): void {
19591961
const params: {
1960-
$brand: string,
1961-
$status: string,
1962-
$room_name: string|undefined,
1962+
$brand: string;
1963+
$status: string;
1964+
$room_name: string|undefined;
19631965
} = {
19641966
$brand: SdkConfig.get().brand,
19651967
$status: this.subTitleStatus,

0 commit comments

Comments
 (0)