Skip to content

v4.2.0

Compare
Choose a tag to compare
@sendbird-sdk-deployment sendbird-sdk-deployment released this 09 Dec 07:00
· 172 commits to master since this release

Features

Pinned Message 📌

Pinned Message is released. You can now maintain a special set of messages (up to 10 per channel) that you want everyone in the channel to share. It can be anything from announcements, surveys, upcoming events, and any many more. Pin your messages and never miss them!
Stay tuned for updates as we are rolling out more exciting features and see below for exact specifications:point_down:

Specification

  • Pin when sending a message
    • UserMessageCreateParams.isPinnedMessage: Bool = false
    • FileMessageCreateParams.isPinnedMessage: Bool = false
  • Pin existing message
    • GroupChannel.pinMessage(messageId:completionHandler:)
  • Unpin a message
    • GroupChannel.unpinMessage(messageId:completionHandler:)
  • Pinned messages
    • GroupChannel.lastPinnedMessage: BaseMessage? = nil
    • GroupChannel.pinnedMessageIds: [Int64]? = nil

We strongly recommend using Collections (Message, Channel) to implement Pinned Messages as it would automatically take care of numerous events out of the box when messages are created, updated, and deleted.


Improvements

  • Added use_local_cache to the request header
  • Removed internal logs