HasUnreadCounts

interface HasUnreadCounts

Interface that marks a ChatEvent as having the information about unread counts. There are certain cases when the server omits these fields (e.g. when ReadEvents option is disabled, when the number of watchers is over 100, etc). In that case totalUnreadCount and unreadChannels fields have 0 values.

The list of events which contain unread counts:

  • message.new

  • notification.message_new

  • notification.mark_read

  • notification.added_to_channel

  • notification.channel_deleted

  • notification.channel_truncated

Inheritors

Properties

Link copied to clipboard
abstract val totalUnreadCount: Int
Link copied to clipboard
abstract val unreadChannels: Int