Set Chat Markers
Set chat markers to track message read status.
Read time 1 minuteLast updated 20 hours ago
The set Chat Markers API gives you control over the creation of Chat Markers. You can use Chat Markers to mark messages as read. It also provides data for the Conversation list API. This functionality works in both channels and DMs. To set a conversation's read marker, sign in to the application and use
vx_req_account_chat_history_set_marker
The following code is an example of how to set a conversation marker.
After you retrieve this information, the game must process thevx_req_account_chat_history_set_marker *req;vx_req_account_chat_history_set_marker_create(&req);req->with_uri = vx_strdup(”sip:confctl-g-issuer.room_name.@domain”); // Optional parameter, if not set it will use the channel you’ve joined most recentlyreq->message_id = vx_strdup(“1234567890”); // The message id you’re setting the marker forreq->seen_at = 1234567890; // Optional, unix timestamp which defaults to the current time if not setvx_issue_request2(&req->base);
vx_resp_account_chat_history_set_marker_tvoid HandleAccountChatHistorySetMarkerResponse(vx_resp_account_chat_history_set_marker_t *resp){ // Handles the response, nothing to really be done here unless the request fails}