Skip to content

Commit

Permalink
Merge pull request #1026 from matrix-org/dbkr/fix_add_pending_events_…
Browse files Browse the repository at this point in the history
…chronological

Fix addPendingEvent with pending event order == chronological
  • Loading branch information
dbkr authored Aug 28, 2019
2 parents 2315980 + 3071587 commit 42b359e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/room.js
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ Room.prototype.addPendingEvent = function(event, txnId) {
for (let i = 0; i < this._timelineSets.length; i++) {
const timelineSet = this._timelineSets[i];
if (timelineSet.getFilter()) {
if (this._filter.filterRoomTimeline([event]).length) {
if (timelineSet.getFilter().filterRoomTimeline([event]).length) {
timelineSet.addEventToTimeline(event,
timelineSet.getLiveTimeline(), false);
}
Expand Down Expand Up @@ -1204,7 +1204,7 @@ Room.prototype._aggregateNonLiveRelation = function(event) {
for (let i = 0; i < this._timelineSets.length; i++) {
const timelineSet = this._timelineSets[i];
if (timelineSet.getFilter()) {
if (this._filter.filterRoomTimeline([event]).length) {
if (timelineSet.getFilter().filterRoomTimeline([event]).length) {
timelineSet.aggregateRelations(event);
}
} else {
Expand Down

0 comments on commit 42b359e

Please sign in to comment.