Marketplace API / Types

ChatChannelViewerState

Object

The caller's access to a channel and read state in it.

type ChatChannelViewerState

Fields

FieldTypeDescription
canMentionEveryoneBoolean!
True when the caller can post in this channel with mentionEveryone.
canPostBoolean!
True when the caller can post in this channel. The post mutation applies the same rule.
canReadBoolean!
True when the caller can read this channel's messages.
lastReadMessageChatMessage
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.
pushNotificationSettingChatNotificationSetting!
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.
unreadMentionCountNonNegativeInt!
Messages after the caller's read position that mention the caller or everyone. Zero when canRead is false.
unreadMessageCountNonNegativeInt!
Messages after the caller's read position. Zero when canRead is false.

Returned by