Skip to content

4.1.9

Choose a tag to compare

@cometchat cometchat released this 08 Sep 12:16
· 1 commit to v4 since this release
9c9e745

v4.1.9

New

  • Pin & save messages. CometChat.pinMessage(...) / unpinMessage(...) share a pinned message with everyone in a conversation; CometChat.saveMessage(...) / unsaveMessage(...) keep a personal list that syncs across a user's devices. Fetch either list with MessageRequestBuilder.set(pinned: true) or set(saved: true), read the state from the new BaseMessage.pinnedAt, pinnedBy and savedAt, and observe changes live through the onMessagePinned, onMessageUnpinned, onMessageSaved and onMessageUnsaved delegate callbacks.
  • Pinned conversations. CometChat.pinConversation(conversationWith:conversationType:onSuccess:onError:) and unpinConversation(...), with ConversationRequestBuilder.set(pinnedBy:), the new Conversation.pinnedAt and pinnedBy properties, and onConversationPinned / onConversationUnpinned callbacks.
  • Thread subscriptions. CometChat.subscribeToThread(parentMessageId:onSuccess:onError:) and unsubscribeFromThread(...) let users follow or stop following a thread's replies. ThreadsRequest / ThreadsRequestBuilder list threads with optional filtering by user (set(uid:)), group (set(guid:)) or participation (set(participatedByMe:)), and the new MessageThread model exposes the parent message, reply count, unread reply count, last reply and subscription state. Also adds RepliesOptions.SUBSCRIBE_TO_SUBSCRIBED_THREADS.
  • BaseMessage.threadSubscribed reports the logged-in user's subscription state on each fetched message, so subscription controls render without an extra network call. The flag is authoritative only when it was fetched — false on a message fetched without it means "not reported", not "unsubscribed".
  • CometChat.isPinMessageEnabled(), isSaveMessageEnabled() and isPinConversationEnabled() report feature availability at runtime.
  • Quoted-replies notification preferences for one-to-one and group conversations, via CometChatNotifications.

Enhancements

  • None

Fixes

  • None