Message Delivery Status
Last updated
Last updated
When you send a message to someone, it's important to know whether that message has been delivered to the recipient's device or not. This is where the "Mark message delivered" function comes in.
By calling this function, you can update the status of a message to "delivered", which indicates that the message has been successfully delivered to the recipient's device. This can be useful for ensuring that important messages have been received by the intended recipient.
The parameters for this function are:
subchannelId
: The ID of the subchannel where the message is located.
messageId
: The ID of the message you want to mark as delivered.
In a chat application, it is often necessary to track which users have read a message. The Get Message's Read User function allows developers to retrieve a list of users who have read a particular message. This function can be useful for a variety of purposes, such as displaying read receipts or tracking user engagement with a particular message.
To use this function, you can call the getMessageReadUsers
method, this will return a collection of users who have read the message.
It is also important for users to know whether their messages have been successfully delivered to the intended recipients. The "Get message's delivered user" function allows users to query the list of users who have marked a particular message as delivered. This feature can be useful in scenarios where users need to know whether their messages have reached their intended recipients, such as in a customer service application or a team collaboration tool.
The function takes a message ID as a parameter and returns a collection of user objects that have marked the message as delivered. By observing the live collection, users can receive real-time updates as new users mark the message as delivered.