Handle indication from server that a room has no more tags

pull/21833/head
lukebarnard 2018-02-06 12:00:23 +00:00
parent 8d0d0b43ff
commit dd0e981d72
1 changed files with 4 additions and 0 deletions

View File

@ -153,6 +153,10 @@ class RoomListStore extends Store {
newLists[tagName].push(updatedRoom); newLists[tagName].push(updatedRoom);
}); });
if (roomTags.length === 0) {
newLists['im.vector.fake.recent'].unshift(updatedRoom);
}
this._setState({ this._setState({
lists: newLists, lists: newLists,
}); });