Merge pull request #5825 from matrix-org/travis/spaces/room-list

Restabilize room list ordering with prefiltering on spaces/communities
This commit is contained in:
Travis Ralston 2021-04-06 05:47:21 -06:00 committed by GitHub
commit b0af163002
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 217 additions and 105 deletions

View file

@ -296,6 +296,11 @@ describe('RoomList', () => {
GroupStore._notifyListeners();
await waitForRoomListStoreUpdate();
// XXX: Even though the store updated, it can take a bit before the update makes
// it to the components. This gives it plenty of time to figure out what to do.
await (new Promise(resolve => setTimeout(resolve, 500)));
expectRoomInSubList(otherRoom, (s) => s.props.tagId === DefaultTagID.Untagged);
});