Set Chat Markers
Set chat markers to track message read status.
Read time 1 minuteLast updated 2 days ago
The 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 direct messages. To set a conversation's read marker, sign in to the application and use
VivoxService.Instance.SetMessageAsReadAsync()VivoxMessageMessageIdMessageIdVivoxMessage
The following code is an example of how to set a Chat Marker.
ADateTime seenAt = DateTime.Now; // Optional timestamp for when the message was seen. Default is DateTime.Now converted to UTC.var readMessage = await VivoxService.Instance.SetMessageAsReadAsync(message, seenAt);
VivoxMessageIsReadVivoxMessageVivoxService.Instance.SetMessageAsReadAsync()VivoxMessageVivoxMessageVivoxService.Instance.SetMessageAsReadAsync()// EventsChannelMessageReceived;ChannelMessageEdited;ChannelMessageDeleted;DirectedMessageReceived;DirectedMessageDeleted;DirectedMessageEdited;
// MethodsGetChannelTextMessageHistoryAsync();GetDirectTextMessageHistoryAsync();