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

Is there any way to close room after user report or user block? #28

Open
namastedating opened this issue Aug 15, 2022 · 1 comment
Open
Labels
question Further information is requested

Comments

@namastedating
Copy link

Hello,

I am trying to have a one-to-one chat feature for my app.

I want to know If one user blocks or reports to another user then we should close the room and users can not be able to message each other.

Is this case possible with this library?

@namastedating namastedating added the question Further information is requested label Aug 15, 2022
@demchenkoalex
Copy link
Member

Hey! Yes, this should be possible. Both users and rooms have metadata map available to store any values there, so you can add like a blocklist of user ids inside users metadata and filter out users for example which ids are in the blocklist and also if you have rooms with users in blocklist, close them and.. then depends what UI you want to do, just remove them, or make some toast message whatever :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants