How to give 1 firebase id to 2 users in flutter?

Viewed 184

I'm trying to make chat app in flutter using firebase. And i want to know, can i make chat using users id? I mean chatID=user1ID+user2ID, is it possible?

1 Answers

I think you can add a field of type array to your chat document and name it as chat _user and just pass the two users ids to it as like this => enter image description here

Related