Our app consists of users and teams. Each user can be a part of multiple teams.
We’d like users on a team to be able to start distinct chats with each other. So, each time a user on a team contacts an existing chat with a user, the same chat loads.
However, we don’t want group chats to be distinct across teams. For example, User A and User B on Team 1 start chatting, we would like that to be distinct for that team. If the same two users start a chat on Team 2, we would want it to start a new chat (despite being the same two users).
Is this scenario possible? If so, how can we accomplish this? Would setting the “custom_type” to be the Team ID be sufficient?