hi I have some questions about the chat app
1.should I save the the firebase users as random ids?( then the problem is I can never find a user fast) is it a bad idea to have the docs saved as names instead of random ids. but then it would get pretty messy since docs are not organized so how about only one users collection and only one doc for each user… I’m just really confused on how to structure the firebase stuff.
-
can I make the users messages private somehow. so on the chat app when users send each other chats will this always be visible to me on firebase… I obviously don’t want it to be.
-
how would I delete a sub collection on firebase. I made a collection with doc, and each doc has a sub collection with docs but when I delete the main collection it does not delete the subcollection.
4 I think I messed up somewhere but when I log out and log back in with a different user I see the previous users info for a sec or two before it shows and empty list.