Skip to content

Commit

Permalink
clear current room in two more contexts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Jan 13, 2025
1 parent f99de0b commit c4138a3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/structures/MatrixChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
}
this.setStateForNewView({
view: Views.WELCOME,
currentRoomId: null,
});
this.notifyNewScreen("welcome");
ThemeController.isLogin = true;
Expand All @@ -1121,6 +1122,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
private viewLogin(otherState?: any): void {
this.setStateForNewView({
view: Views.LOGIN,
currentRoomId: null,
...otherState,
});
this.notifyNewScreen("login");
Expand Down Expand Up @@ -1957,9 +1959,9 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {

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,
Expand Down

0 comments on commit c4138a3

Please sign in to comment.