Ensure RoomListStore2 gets reset when the client becomes invalidated

Fixes https://github.com/vector-im/riot-web/issues/14384

We also make use of the new AsyncStore type to handle this more safely.
This commit is contained in:
Travis Ralston 2020-07-13 13:15:44 -06:00
parent 1f57b85b30
commit a8829f09d0
2 changed files with 18 additions and 32 deletions

View file

@ -109,7 +109,7 @@ describe('RoomList', () => {
client.getRoom = (roomId) => roomMap[roomId];
// Now that everything has been set up, prepare and update the store
await RoomListStore.instance.makeReady(client);
await RoomListStore.instance.makeReady();
done();
});