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 thread & main timeline partitioning logic #2264

Merged
merged 12 commits into from
Mar 31, 2022
Merged

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Mar 30, 2022

Fixes element-hq/element-web#21599


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.

@codecov-commenter
Copy link

Codecov Report

Merging #2264 (e6ba710) into develop (26cbe02) will decrease coverage by 0.00%.
The diff coverage is 82.97%.

@@             Coverage Diff             @@
##           develop    #2264      +/-   ##
===========================================
- Coverage    58.96%   58.96%   -0.01%     
===========================================
  Files           91       91              
  Lines        16346    16325      -21     
  Branches      3774     3768       -6     
===========================================
- Hits          9639     9626      -13     
+ Misses        6707     6699       -8     
Impacted Files Coverage Δ
src/sync.ts 65.58% <82.35%> (+0.08%) ⬆️
src/models/room.ts 54.46% <82.75%> (+0.38%) ⬆️
src/client.ts 38.12% <100.00%> (-0.36%) ⬇️
src/models/event.ts 66.82% <0.00%> (+0.24%) ⬆️

@germain-gg
Copy link
Contributor

Does this possibly fix element-hq/element-web#21613 ?

@t3chguy
Copy link
Member Author

t3chguy commented Mar 31, 2022

Unlikely, that looks like thread initialisation/pagination somehow getting the wrong events from relations

@t3chguy t3chguy marked this pull request as ready for review March 31, 2022 08:43
@t3chguy t3chguy requested a review from a team as a code owner March 31, 2022 08:43
Copy link
Contributor

@germain-gg germain-gg left a comment

Choose a reason for hiding this comment

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

LGTM 👍

spec/test-utils/test-utils.ts Outdated Show resolved Hide resolved
src/models/room.ts Show resolved Hide resolved
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.

A reply to a reply to a thread root appears in the thread, but it should not
3 participants