My messages are created through product listing pages. So if I message from different product listing pages of the same supplier, it creates different Conversation IDs. How do I get it to make the same Conversation ID?
This is my sample chat and problem (supplier on the left under Inbox conversations):
@kindlevega12 you could use URL parameters for this, but it is not necessary, and I believe a more appropriate approach is to use the database structure of your app to enable this.
Database data type of conversations should have a field for participants which is a list of users (normally will just be two) and in your case this would be the ‘purchaser’ and the ‘supplier’.
When a button from a product listing page is pressed to send a message you will need to run workflow action to associate the message with a conversation, and at that time you should use a conditional to check if any existing conversations exist with the data field of participants being the current product pages supplier and the current user - this indicates that if an existing conversation is in the database, you do not create a new conversation and instead just associate the new message with the existing conversation, but if no existing conversation is present in database, you will create a new conversation to associate the message with.