Morning:
Afternoon:
Again, you can set database rules in Firebase for your application. In our Chatarang app, we made a certain endpoint public while others are private based on whether or not a user is authenticated.
{
"rules": {
"users": {
".read": "true",
".write": "auth != null"
},
".read": "auth != null",
".write": "auth != null"
}
}
IMPORTANT: You must add this to your firebase.json
file:
Only list public rooms, and rooms in which the current user is listed as a member.
Don’t allow users to load non-public rooms of which they’re not members.
Make a separate UI for direct messages.