Skip to content

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 <[email protected]>
@nickvergessen nickvergessen force-pushed the bugfix/9489/fix-clearing-of-guests branch from e44ea7d to 80b96cf Compare May 11, 2023 11:57
@nickvergessen nickvergessen requested a review from danxuliu May 11, 2023 11:57
@nickvergessen nickvergessen mentioned this pull request May 11, 2023
4 tasks
@nickvergessen nickvergessen enabled auto-merge May 11, 2023 13:05
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
@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

4 participants