Skip to content

v4.2.0

Latest

Choose a tag to compare

@PrajwalDhuleCC PrajwalDhuleCC released this 08 Sep 12:26
cdccb65

v4.2.0

New

  • Added support for pinning messages to a conversation with pinMessage() and unpinMessage(), making pinned messages visible to everyone in the conversation.
  • Added support for privately saving messages with saveMessage() and unsaveMessage(), allowing logged-in users to save messages across conversations.
  • Added support for pinning conversations to the top of the conversation list with pinConversation() and unpinConversation().
  • Added support for subscribing to message threads with subscribeToThread() and unsubscribeFromThread(), allowing users to follow thread replies.
  • Added ThreadsRequest and ThreadsRequestBuilder to retrieve the threads a user participates in.
  • Added onMessagePinned, onMessageUnpinned, onMessageSaved, and onMessageUnsaved callbacks to MessageListener for real-time message pin and save events.
  • Added ConversationListener with onConversationPinned and onConversationUnpinned callbacks for real-time conversation pin events, registered with addConversationListener() and removeConversationListener().
  • Added setPinned() and setSaved() to MessagesRequestBuilder to fetch a conversation's pinned messages and the logged-in user's saved messages.
  • Added the pin, save, and thread-subscription attributes to BaseMessage through isPinned(), isSystemPinned(), getPinnedAt(), getPinnedBy(), isSaved(), getSavedAt(), and isThreadSubscribed(), and the pin attributes to Conversation.
  • Added QuotedRepliesOptions to GroupPreferences and OneOnOnePreferences to control notifications for quoted replies, and RepliesOptions.SUBSCRIBE_TO_SUBSCRIBED_THREADS to control notifications for replies in subscribed threads.

Enhancements

  • None

Fixes

  • Fixed an issue where notification preference getters could return inconsistent values depending on the format sent by the server. The getters now consistently return the corresponding enum value.