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

Adjust fetchEditsWhereNeeded to use a clearer filter and async function #3411

Merged
merged 2 commits into from
May 26, 2023

Conversation

andybalaam
Copy link
Contributor

@andybalaam andybalaam commented May 25, 2023

The tests already cover this logic - just refactoring it to be clearer.

Slight change: before this did all events that were either in thread or not a relation. In fact, we only do this for thread events, so we explicitly check for messages that are either in the thread or thread roots. This should have the same effect.

Part of element-hq/element-web#10954


This change is marked as an internal change (Task), so will not be included in the changelog.

@andybalaam andybalaam added the T-Task Tasks for the team like planning label May 25, 2023
@andybalaam andybalaam changed the title Adjust fetchEditsWhereNeeded to use a clearer filter and asycn function Adjust fetchEditsWhereNeeded to use a clearer filter and async function May 25, 2023
@andybalaam andybalaam changed the base branch from develop to andybalaam/insert-edit-no-original May 25, 2023 09:35
@andybalaam andybalaam marked this pull request as ready for review May 25, 2023 09:35
@andybalaam andybalaam requested a review from a team as a code owner May 25, 2023 09:35
@andybalaam andybalaam requested review from germain-gg and kerryarchibald and removed request for a team May 25, 2023 09:35
Base automatically changed from andybalaam/insert-edit-no-original to develop May 25, 2023 16:01
@weeman1337
Copy link
Contributor

The tests already cover this logic - just refactoring it to be clearer.

Good! Refactor with confidence 👍

@andybalaam andybalaam added this pull request to the merge queue May 26, 2023
Merged via the queue into develop with commit b29e1e9 May 26, 2023
@andybalaam andybalaam deleted the andybalaam/adjust-filter-in-fetchEditsWhereNeeded branch May 26, 2023 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants