Delivery receipt is a feature that allows a user to know whether their messages have been successfully delivered to other users in the channel. Once the recipients in the channel receive a message notification or see the message in the channel list view, it will be marked as delivered. The delivery receipt appears in the MessageList component of the
Channel module and in the ChannelPreview component of the
ChannelList module. If the sender’s message has been delivered to all recipients of the channel, a double-tick icon will appear above the message’s timestamp. Delivery receipt is only visible to the sender of the message.
How to use
While the delivery receipt feature is turned on by default in the
Channel module, you have to set the feature's setter method to
true in the
ChannelList module. Implement the code below to turn on the delivery receipt in a channel list view.
Customize the UI for delivery receipt
You can customize the UI for delivery receipt by following the code below.
Note : The same double-tick icon is used for both read receipt and delivery receipt. The only difference is the color of the icon. Default icon colors used for delivery receipt are