Skip to main content

Conversations

Create, retrieve, delete, and restore conversation threads

๐Ÿ“„๏ธ Mark conversation as unread

Marks a conversation the current user has read as unread again (Better Messages 3.2). The `unread_count` of the user for it becomes `-1`: the conversation shows a dot in the conversations list and is listed by the unread filter, while no unread total counts it (`get_user_unread_count()`, the conversations count, the totals of the realtime server and the mobile app badge). The mark ends when the user opens the conversation (`messages_mark_thread_read()`, `/openThreads`, `/markAllRead`) or when a new message arrives, which counts from 0. A deleted message keeps it. Nobody is notified.

๐Ÿ“„๏ธ Accept a message request

Accepts a message request (Better Messages 3.3): a conversation started, or a group joined, by someone the current user never talked to, which waits in the Requests section until the member answers it. The conversation then shows in their list as any other, and marked as read. Sending a reply in the conversation accepts it too. The caller must be a participant (a guest authenticates with the `BM-Guest-ID` and `BM-Guest-Secret` headers) or an administrator. Fires the `better_messages_message_request_accepted` action.

๐Ÿ“„๏ธ Delete a message request

Deletes a message request (Better Messages 3.3). The conversation leaves the list of the caller and the sender is not told. The deletion counts against the sender in Spam Protection, and with `block` or `report` the member can block the sender or report them at once. The caller must be a participant (a guest authenticates with the `BM-Guest-ID` and `BM-Guest-Secret` headers) or an administrator. Fires the `better_messages_message_request_declined` action.