Merge pull request #2674 from matrix-org/travis/fix-favourites

Fix favourites losing rooms and sorting weirdly
pull/21833/head
Travis Ralston 2019-02-21 09:28:34 -07:00 committed by GitHub
commit 86c49d5807
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -287,6 +287,7 @@ class RoomListStore extends Store {
// Speed optimization: Skip the loop below if we're not going to do anything productive
if (!hasRoom || LIST_ORDERS[key] !== 'recent') {
listsClone[key] = this._state.lists[key];
inserted = true; // Ensure that we don't try and sort the room into the tag
continue;
} else {
listsClone[key] = [];