Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix addPendingEvent with pending event order == chronological #1026

Merged
merged 1 commit into from
Aug 28, 2019

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Aug 28, 2019

When the pending event order setting was set to 'chronological'
(the default) addPendingEvent would NPE because Room no longer
has a this._filter property. It should get the filter from the
event timeline set instead, as it does in the previous line when
checking or the presence of a filter.

We should strongly consider changing the default pending event order
to 'detached' and probably removing 'chronological' or comitting to
support it properly: it's not really tested and is prone to breakage
like this.

Applies flumpt's fix from #599
Fixes #599

When the pending event order setting was set to 'chronological'
(the default) `addPendingEvent` would NPE because Room no longer
has a `this._filter` property. It should get the filter from the
event timeline set instead, as it does in the previous line when
checking or the presence of a filter.

We should strongly consider changing the default pending event order
to 'detached' and probably removing 'chronological' or comitting to
support it properly: it's not really tested and is prone to breakage
like this.

Applies flumpt's fix from #599
Fixes #599
@dbkr dbkr requested a review from a team August 28, 2019 20:37
@dbkr dbkr merged commit 42b359e into develop Aug 28, 2019
@t3chguy t3chguy deleted the dbkr/fix_add_pending_events_chronological branch May 10, 2022 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MatrixClient scrollback does not have server side filtering
2 participants