Software Engineer

Hey Ayoub!

In terms of security, it can be set in the Firestore Rules and you can customize it so chats are only accessible by users that are a part of the conversation.

Firestore Rules allow you to place conditional access based on the document values. The messaging documents have `userId` and you can check that with the `id` of the user accessing the document to determine whether they should have access or not.

I hope that clears up your question!

Regards,

Shiv.

Yoganathan Shiv

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store