Marketplace API / Types
ChatChannelViewerState
ObjectThe caller's access to a channel and read state in it.
type ChatChannelViewerStateFields
| Field | Type | Description |
|---|---|---|
canMentionEveryone | Boolean! | True when the caller can post in this channel with mentionEveryone. |
canPost | Boolean! | True when the caller can post in this channel. The post mutation applies the same rule. |
canRead | Boolean! | True when the caller can read this channel's messages. |
lastReadMessage | ChatMessage | The newest message that the caller has read. Null when the caller has not read the channel or the message is past retention. A deleted message has deletedAt set and a null text. |
pushNotificationSetting | ChatNotificationSetting! | The push setting that applies to the caller in this channel. A caller who is not an ACTIVE member reads OFF. Otherwise the caller's override takes precedence. With no override, the more restrictive of the channel default and the caller's chat preferences applies. |
unreadMentionCount | NonNegativeInt! | Messages after the caller's read position that mention the caller or everyone. Zero when canRead is false. |
unreadMessageCount | NonNegativeInt! | Messages after the caller's read position. Zero when canRead is false. |