Don't regenerate RoomListStore state for notifs/scrollback/etc.
Only do so for the live timeline of rooms.
This commit is contained in:
parent
3f6c15506c
commit
32130fbc28
2 changed files with 3 additions and 0 deletions
|
@ -71,6 +71,8 @@ function createRoomTimelineAction(matrixClient, timelineEvent, room, toStartOfTi
|
||||||
action: 'MatrixActions.Room.timeline',
|
action: 'MatrixActions.Room.timeline',
|
||||||
event: timelineEvent,
|
event: timelineEvent,
|
||||||
isLiveEvent: data.liveEvent,
|
isLiveEvent: data.liveEvent,
|
||||||
|
isLiveUnfilteredRoomTimelineEvent:
|
||||||
|
room && data.timeline.getTimelineSet() === room.getUnfilteredTimelineSet(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -81,6 +81,7 @@ class RoomListStore extends Store {
|
||||||
case 'MatrixActions.Room.timeline': {
|
case 'MatrixActions.Room.timeline': {
|
||||||
if (!this._state.ready ||
|
if (!this._state.ready ||
|
||||||
!payload.isLiveEvent ||
|
!payload.isLiveEvent ||
|
||||||
|
!payload.isLiveUnfilteredRoomTimelineEvent ||
|
||||||
!this._eventTriggersRecentReorder(payload.event)
|
!this._eventTriggersRecentReorder(payload.event)
|
||||||
) break;
|
) break;
|
||||||
this._generateRoomLists();
|
this._generateRoomLists();
|
||||||
|
|
Loading…
Reference in a new issue