Regenerate room lists when we get m.direct

pull/21833/head
lukebarnard 2018-02-05 18:06:29 +00:00
parent 415da3e6ab
commit 9982efbd8f
1 changed files with 5 additions and 0 deletions

View File

@ -65,6 +65,11 @@ class RoomListStore extends Store {
this._updateRoomLists(payload.room);
}
break;
case 'MatrixActions.accountData': {
if (payload.event_type !== 'm.direct') break;
this._generateRoomLists();
}
break;
case 'RoomListActions.tagRoom.pending': {
this._updateRoomListsOptimistic(
payload.request.room,