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

Make events pagination responses parse threads #2011

Merged
merged 1 commit into from
Nov 4, 2021

Conversation

germain-gg
Copy link
Contributor

@germain-gg germain-gg commented Nov 3, 2021

Fixes element-hq/element-web#19587

Possible will do the trick for element-hq/element-web#19607 & element-hq/element-web#19603


Here's what your changelog entry will look like:

🐛 Bug Fixes

@germain-gg germain-gg requested a review from a team as a code owner November 3, 2021 19:45
Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, seems reasonable overall, let's try it! 😄

const [timelineEvents, threadedEvents] = this.partitionThreadedEvents(matrixEvents);

room.addEventsToTimeline(timelineEvents, true, room.getLiveTimeline());
this.processThreadEvents(room, threadedEvents);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's probably some way we can refine this in the future to avoid repeating processThreadEvents everywhere, but anyway it's okay for now.

@jryans jryans added the T-Defect label Nov 4, 2021
@germain-gg germain-gg merged commit 195498e into develop Nov 4, 2021
@germain-gg germain-gg deleted the gsouquet/threads-pagination-19587 branch November 4, 2021 11:29
su-ex added a commit to SchildiChat/matrix-js-sdk that referenced this pull request Nov 24, 2021
* Fix edit history being broken after editing an unencrypted event with an encrypted event ([\matrix-org#2013](matrix-org#2013)). Fixes element-hq/element-web#19651 and element-hq/element-web#19651. Contributed by @aaronraimist.
* Make events pagination responses parse threads ([\matrix-org#2011](matrix-org#2011)). Fixes element-hq/element-web#19587 and element-hq/element-web#19587.
skyka13711 pushed a commit to 42-px/matrix-js-sdk that referenced this pull request Apr 14, 2022
skyka13711 pushed a commit to 42-px/matrix-js-sdk that referenced this pull request Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regular reply in non-threads mode vanished in threads mode
2 participants