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

Ensure local invited & knocking users leave before purge. #16559

Merged
merged 2 commits into from
Oct 27, 2023

Conversation

clokep
Copy link
Member

@clokep clokep commented Oct 26, 2023

Currently when we purge a room only joined local users leave the room, stranding invites and knocking users in their old state.

This isn't a huge deal since well...you've purged the room and your own server doesn't know about it anymore. Other servers, however, will still see those users in those states and we should properly clean-up.

@clokep clokep marked this pull request as ready for review October 26, 2023 17:54
@clokep clokep requested a review from a team as a code owner October 26, 2023 17:54
Copy link
Contributor

@DMRobertson DMRobertson left a comment

Choose a reason for hiding this comment

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

Seems reasonable. How confident are we that the leaves are broadcast to invited and knocking users? I'm guessing that this behaves in exactly the same way as the join->leave transition for joined users?

@clokep
Copy link
Member Author

clokep commented Oct 27, 2023

I'm guessing that this behaves in exactly the same way as the join->leave transition for joined users?

It should...except none of these are transmitted to users during the purging process due to #16001.

@clokep clokep merged commit 2bf9341 into develop Oct 27, 2023
41 checks passed
@clokep clokep deleted the clokep/purge-all branch October 27, 2023 16:50
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.

2 participants