Skip to content

v4.3.0

Compare
Choose a tag to compare
@sendbird-sdk-deployment sendbird-sdk-deployment released this 01 Feb 10:01
· 169 commits to master since this release

Features

Participant class in Open Channel

Participant is a new interface for User who joined Open Channel. It's optimized for scalability and contains much lighter information about the User than a Member in Group Channel.
Now clients can implement Open Channels easier in SDK with more built-in capabilities. You can compare how Member, Participant, and User are different here.

  • Participant holds essential information about the participant like below. They contain their muted status (is_muted) on top of basic User information.
@objc(SBDParticipant)
public class Participant: User {

    @objc
    public internal(set) var isMuted: Bool

    @objc
    public func serialize() -> Data?

    @objc
    public class func build(fromSerializedData data: Data?) -> Self?
}
  • ParticipantListQuery.loadNextPage(completionHandler: @escaping UserListHandler) now returns [Participant]
    • For backward compatibility, the UsersHandler returns User list, but it can be casted into Participant