Best way to manage Chat channels in Firebase

后端 未结 4 1867
时光取名叫无心
时光取名叫无心 2020-11-22 01:25

In my main page I have a list of users and i\'d like to choose and open a channel to chat with one of them.

I am thinking if use the id is the best way and control a

4条回答
  •  北海茫月
    2020-11-22 01:57

    We decided on hashing users uid's, which means you can look up any existing conversation,if you know the other persons uid.

    Each conversation also stores a list of the uids for their security rules, so even if you can guess the hash, you are protected.

提交回复
热议问题