ok so basically i am creating this messaging system where a button message is creating a new data message with sender=current user and receiver= parent group user plus i am adding the new message to both the current user and the parent group user
first question is how can i tell bubble that once the conversation among two user is created there is not more need to create a new message because the two users will chat on the first message created and vice versa
in a few words user A is sending a message to user B but if user B send a message to user A in the same way bubble is creating two different chat?
Ho can avoid that??
thanks in advance for your help!!
Hi @Bruno27
Have the messages under a thread. So … two data types a thread thing with a list of users and a message thing with a thread and a field viewed by users.
hi @cmarchan thanks for answering but now my question is what’s a thread??..lol
A collection of messages
thanks i think i solved it creating for each message a data type call room which is a list of user so every time i create a new message i can assign the two user starting the conversation and tell bubble to create a new message only when parents group user message room does not not contain current user and current user message room does not contain Parent group user …and is working …is creating just one chat where the only user are the one in the room…i don’t know if it make sense what I am saying but thanks again for your help:)