Regenerate room lists when we get RoomMember.membership

This commit is contained in:
lukebarnard 2018-02-05 18:27:50 +00:00
parent 9982efbd8f
commit c665c1170b
2 changed files with 10 additions and 0 deletions

View file

@ -70,6 +70,11 @@ class RoomListStore extends Store {
this._generateRoomLists();
}
break;
case 'MatrixActions.RoomMember.membership': {
if (!this._matrixClient || payload.member.userId !== this._matrixClient.credentials.userId) break;
this._generateRoomLists();
}
break;
case 'RoomListActions.tagRoom.pending': {
this._updateRoomListsOptimistic(
payload.request.room,