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

Fix duplicate EventListSummarys #7952

Merged
merged 2 commits into from
Mar 2, 2022

Conversation

robintown
Copy link
Member

@robintown robintown commented Mar 2, 2022

Type: defect

element-web notes: none
Notes: none

Closes element-hq/element-web#21245.
Closes element-hq/element-web#21261.


This change has no change notes, so will not be included in the changelog.

Preview: https://pr7952--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.

Signed-off-by: Robin Townsend <robin@robin.town>
Signed-off-by: Robin Townsend <robin@robin.town>
@robintown robintown requested a review from a team as a code owner March 2, 2022 16:03
@github-actions github-actions bot added the T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems label Mar 2, 2022
});
// Populate the weak map with the key.
// Note that we only set the key on the specific event it refers to, since this group might get
// split up in the future by other intervening events. If we were to set the key on all events
Copy link
Member

Choose a reason for hiding this comment

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

When would this split up happen?

Copy link
Member Author

Choose a reason for hiding this comment

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

I wasn't able to find the specific cause, but I think what's happening is that when restarting Element, it pre-populates the timeline with state events that it knows about. Fetching the actual messages for the room can then split up these summaries.

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.

Looks sane, might regress element-hq/element-web#9192 if an unpagination happens but that's relatively minor in comparison

@robintown
Copy link
Member Author

I don't think the previous approach fully worked for unpaginations anyways, so yeah, this is a pretty minor step backward

@robintown robintown merged commit aadb646 into matrix-org:develop Mar 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems
Projects
None yet
2 participants