Documentation

Support

Vivox Unreal SDK

Vivox Unreal SDK

Set chat markers

Learn how to set read status markers in chat.
Read time 1 minuteLast updated 2 days 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 to make a request. This request returns whether the marker was created or not. The following code is an example of how to set a conversation marker.
vx_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);
After you retrieve this information, the game must process the vx_resp_account_chat_history_set_marker_t response:
void HandleAccountChatHistorySetMarkerResponse(vx_resp_account_chat_history_set_marker_t *resp){ // Handles the response, nothing to really be done here unless the request fails}