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

Clean up editor drafts for unknown rooms #12850

Merged
merged 10 commits into from
Aug 7, 2024
Merged

Conversation

langleyd
Copy link
Contributor

Periodically clean up editor drafts for rooms that are not in our list of known rooms, when the client is in a good state(directly after a sync).

@langleyd langleyd added the T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements label Jul 31, 2024
@@ -1542,6 +1543,8 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
showNotificationsToast(false);
}

cleanUpDraftsIfRequired();
Copy link
Member

Choose a reason for hiding this comment

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

I think this point in the code is executed at the point we load the sync accumulator also, rather than just after the first real sync

@langleyd langleyd requested a review from t3chguy August 1, 2024 14:48
@langleyd
Copy link
Contributor Author

langleyd commented Aug 1, 2024

Thanks @t3chguy. Does this change make sense? As described here it happens after a live sync, seems to work from my testing.

I'm out till next week so will merge after the RC at this point.

@t3chguy
Copy link
Member

t3chguy commented Aug 5, 2024

Looks like the code coverage is insufficient

@langleyd langleyd added this pull request to the merge queue Aug 7, 2024
Merged via the queue into develop with commit e6835fe Aug 7, 2024
29 checks passed
@langleyd langleyd deleted the langleyd/cleanup_drafts branch August 7, 2024 08:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants