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 clearing of guests #9517

Merged
merged 2 commits into from May 12, 2023
Merged

Conversation

nickvergessen
Copy link
Member

☑️ Resolves

🏁 Checklist

@nickvergessen nickvergessen added 3. to review feature: api 🛠️ OCS API for conversations, chats and participants feature: conversations 👥 labels May 11, 2023
@nickvergessen nickvergessen added this to the 💙 Next Beta (27) milestone May 11, 2023
@nickvergessen nickvergessen self-assigned this May 11, 2023
Copy link
Member

@danxuliu danxuliu left a comment

Choose a reason for hiding this comment

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

The cleaning of guests is triggered if the guests have default permissions or custom permissions, but all removed. However, the guests are not cleaned if they do not have default permissions, including custom permissions but all removed.

Other than that, tested and works 👍

Oracle, MySQL and SQLite return ints as strings from the DB

Signed-off-by: Joas Schilling <coding@schilljs.com>
…moved

Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen nickvergessen force-pushed the bugfix/9489/fix-clearing-of-guests branch from e44ea7d to 80b96cf Compare May 11, 2023 11:57
@nickvergessen nickvergessen mentioned this pull request May 11, 2023
4 tasks
Copy link
Member

@danxuliu danxuliu left a comment

Choose a reason for hiding this comment

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

Tested and works 👍

Out of curiosity, if all the permissions are removed for a guest, why is that guest cleared while guests with any other custom permissions are kept?

@nickvergessen
Copy link
Member Author

Out of curiosity, if all the permissions are removed for a guest, why is that guest cleared while guests with any other custom permissions are kept?

My idea/thoughts were the following:

  • When a guest has a name, we want to keep them so in comments the name is rendered
  • When a guest could later on rejoin with the more permissions, we want to keep them so permissions can be revoked before they later on rejoin
  • When a guest has less permissions, they can clear their cookies/website data and end up being a new guest with the default permissions, so keeping them is not as useful

@nickvergessen nickvergessen merged commit 18a4b41 into master May 12, 2023
26 checks passed
@nickvergessen nickvergessen deleted the bugfix/9489/fix-clearing-of-guests branch May 12, 2023 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review feature: api 🛠️ OCS API for conversations, chats and participants feature: conversations 👥
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"participants->update" is sent again and again once a guest left a conversation
3 participants