Fix crash on logging in again after soft logout
Fixes https://github.com/vector-im/riot-web/issues/14834
This commit is contained in:
parent
b1f8fe40d6
commit
9d247321f5
2 changed files with 1 additions and 6 deletions
|
@ -55,7 +55,7 @@ export class BreadcrumbsStore extends AsyncStoreWithClient<IState> {
|
|||
}
|
||||
|
||||
private get meetsRoomRequirement(): boolean {
|
||||
return this.matrixClient.getVisibleRooms().length >= 20;
|
||||
return this.matrixClient && this.matrixClient.getVisibleRooms().length >= 20;
|
||||
}
|
||||
|
||||
protected async onAction(payload: ActionPayload) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue