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

Fix threads timeline message ordering #7968

Merged
merged 6 commits into from
Mar 3, 2022

Conversation

germain-gg
Copy link
Contributor

@germain-gg germain-gg commented Mar 3, 2022

Fixes element-hq/element-web#21113
Fixes element-hq/element-web#20914

To review alongside matrix-org/matrix-js-sdk#2215

  • Fix threads timeline message ordering with msc3440 support
  • Fix message ordering when no thread server support
  • Reset pagination state when adding events to a thread timeline

This PR currently has no changelog labels, so will not be included in changelogs.

Add one of: T-Deprecation, T-Enhancement, T-Defect, T-Task to indicate what type of change this is plus X-Breaking-Change if it's a breaking change.

Preview: https://pr7968--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.

@germain-gg germain-gg requested a review from a team as a code owner March 3, 2022 12:24
Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

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

LGTM otherwise

Comment on lines +254 to +255
timelineWindow.extend(direction, limit);
return true;
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we can switch this back to return timelineWindow.extend(direction, limit); now that Room.timeline events re-set the canPaginate* states

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yup, i'll test this out

@t3chguy
Copy link
Member

t3chguy commented Mar 3, 2022

PR title is a little misleading, given this also fixes ordering without the msc support (degraded mode) too

@germain-gg germain-gg changed the title Fix threads timeline message ordering with msc3440 support Fix threads timeline message ordering Mar 3, 2022
@germain-gg germain-gg merged commit acd12c3 into develop Mar 3, 2022
@germain-gg germain-gg deleted the gsouquet/threads-message-ordering branch March 3, 2022 15:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Messages in a thread appear out of order Thread root appears out of order
2 participants