Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Don't regenerate RoomListStore state for notifs/scrollback/etc.
Browse files Browse the repository at this point in the history
Only do so for the live timeline of rooms.
  • Loading branch information
lukebarnard1 committed Feb 19, 2018
1 parent 3f6c155 commit 32130fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/actions/MatrixActionCreators.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ function createRoomTimelineAction(matrixClient, timelineEvent, room, toStartOfTi
action: 'MatrixActions.Room.timeline',
event: timelineEvent,
isLiveEvent: data.liveEvent,
isLiveUnfilteredRoomTimelineEvent:
room && data.timeline.getTimelineSet() === room.getUnfilteredTimelineSet(),
};
}

Expand Down
1 change: 1 addition & 0 deletions src/stores/RoomListStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ class RoomListStore extends Store {
case 'MatrixActions.Room.timeline': {
if (!this._state.ready ||
!payload.isLiveEvent ||
!payload.isLiveUnfilteredRoomTimelineEvent ||
!this._eventTriggersRecentReorder(payload.event)
) break;
this._generateRoomLists();
Expand Down

0 comments on commit 32130fb

Please sign in to comment.