Home › Forums › BP Better Messages › Starting a chat with another user › Reply To: Starting a chat with another user
What i’m trying to achieve is that there is a button in my template (which knows the current logged in user id and also the other user’s id who they want to chat to). Clicking this button should open the minichat. If there is an existing thread between these two users, then i can use BBPMOpenMiniChat(thread_id, open) because i also know the thread_id already in my templated. But if there isn’t an existing thread, then i can’t open it right now. I want to enable that as well.
So to recap – a button in the template that opens an existing thread between users in a minichat or if there isn’t an existing thread, creates a thread and opens it in a minichat.
I created three screenshots illustrating this idea. You can see them here: https://www.dropbox.com/sh/c9a2tt4z5n7e1ex/AACCQPcFv5HC9RSxVIHWOsuLa?dl=0