mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 11:51:36 +02:00
* Fix room list not being cleared RoomListV3 was lacking an onNotReady which meant that the room list would sometimes not be cleared between logins. * Fix return type --------- (cherry picked from commit 81b111371fba05085d50493ceafd84639d59c9e7) Co-authored-by: David Baker <dbkr@users.noreply.github.com> Co-authored-by: Florian Duros <florianduros@element.io>
This commit is contained in:
parent
0575ca9598
commit
8a21062476
@ -161,6 +161,10 @@ export class RoomListStoreV3Class extends AsyncStoreWithClient<EmptyObject> {
|
||||
this.emit(LISTS_UPDATE_EVENT);
|
||||
}
|
||||
|
||||
protected async onNotReady(): Promise<void> {
|
||||
this.roomSkipList = undefined;
|
||||
}
|
||||
|
||||
protected async onAction(payload: ActionPayload): Promise<void> {
|
||||
if (!this.matrixClient || !this.roomSkipList?.initialized) return;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user