TCHConversationState Constants Reference

Declared in TCHConstants.h

TCHConversationState

Enumeration representing the various states of the conversation.

States of the conversation could change in the following sequence: ACTIVE <-> INACTIVE -> CLOSED with timers (automatically flip to “inactive” after some period of inactivity), triggers (new message, new participant – flip to “active” back on activity), or API call.

Definition

typedef NS_ENUM(NSInteger, TCHConversationState ) {
   TCHConversationStateUndefined = 0,
   TCHConversationStateActive,
   TCHConversationStateInactive,
   TCHConversationStateClosed,
};

Constants

TCHConversationStateUndefined

Conversation state is unknown.

Declared In TCHConstants.h.

TCHConversationStateActive

Conversation state is active, i.e. some events have happened in the conversation recently (new message received, new participant added etc).

Declared In TCHConstants.h.

TCHConversationStateInactive

Conversation state is inactive, i.e. no new events have happened in the conversation recently (new message received, new participant added etc). So the conversation has been moved to inactive state by timeout.

Declared In TCHConstants.h.

TCHConversationStateClosed

Conversations state is closed. When conversation moves to closed state SDK receives update that the user left given conversation. So SDKs will not receive any updates on it in the future. Any operations that create or update new messages or modify any conversation properties/fields are not permitted. Deleting messages in closed conversation is allowed. Deleting closed conversations is allowed as well.

Declared In TCHConstants.h.

Declared In

TCHConstants.h