Skip to content

Conversation

Stream-SDK-Bot
Copy link
Collaborator

StreamChat

🐞 Fixed

  • Fix LivestreamChannelController not reconnecting when connection is dropped #3782
  • Fix StreamAudioRecorder not overridable because of init method #3783
  • Fix channel list query filtering by both blocked and non-blocked channels #3785
  • Fix LivestreamChannelController.synchronize() not working if client not connected #3787
  • Fix membership updates in LivestreamChannelController #3787
  • Fix deleted messages updates in LivestreamChannelController #3787
  • Fix channel.pinnedMessages not updated when pinning a message in LivestreamChannelController #3787
  • Fix LivestreamChannelController not watching the channel automatically when the current user joins the channel #3787

Stream Bot and others added 8 commits August 13, 2025 11:57
… dropped (#3782)

* Fix not reconnecting livestream channel controller when connection is dropped

* Add test coverage

* Update CHANGELOG.md

* Add sync operation test coverage
…nels (#3785)

* Fix channel list query not working when filtering blocked and non-blocked channels at the same time

* Add way in the demo app to query channels with blocked and non-blocked channels

* Add test coverage

* Update CHANGELOG.md
#3787)

* Change livestream controller to handle membership updates in-memory

* Handle channel updated event manually

* Make sure deletedAt is always updated for soft deleted message

* Use channel updater sync

* Update channel.pinnedMessages when a message is pinned

* Make Channel.membership internal set

* Fix crash when removing a pinned message

* Add test coverage to membership updates

* Add test coverage to manual channel updates

* Add test coverage to pinned messages update

* Add test coverage to change of channel sync

* Fix channel mock not compiling

* Update CHANGELOG.md

* Fix tests
@Stream-SDK-Bot Stream-SDK-Bot requested a review from a team as a code owner August 21, 2025 13:22
Copy link

coderabbitai bot commented Aug 21, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch release/4.86.0

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

1 Warning
⚠️ Big PR

Generated by 🚫 Danger

Copy link

Public Interface

 open class StreamAudioRecorder: NSObject, AudioRecording, AVAudioRecorderDelegate, AppStateObserverDelegate  
-   public convenience init(configuration: Configuration)
+   public init(configuration: Configuration,audioSessionConfigurator: AudioSessionConfiguring = StreamAudioSessionConfigurator())

 public struct ChatMessage  
-   public func changing(text: String? = nil,type: MessageType? = nil,state: LocalMessageState? = nil,command: String? = nil,arguments: String? = nil,attachments: [AnyChatMessageAttachment]? = nil,translations: [TranslationLanguage: String]? = nil,originalLanguage: TranslationLanguage? = nil,moderationDetails: MessageModerationDetails? = nil,readBy: Set<ChatUser>? = nil,extraData: [String: RawJSON]? = nil)-> ChatMessage
+   public func changing(text: String? = nil,type: MessageType? = nil,state: LocalMessageState? = nil,command: String? = nil,arguments: String? = nil,attachments: [AnyChatMessageAttachment]? = nil,translations: [TranslationLanguage: String]? = nil,originalLanguage: TranslationLanguage? = nil,moderationDetails: MessageModerationDetails? = nil,readBy: Set<ChatUser>? = nil,deletedAt: Date? = nil,extraData: [String: RawJSON]? = nil)-> ChatMessage

 public class LivestreamChannelController: DataStoreProvider, EventsControllerDelegate, AppStateObserverDelegate  
-   public func loadPreviousMessages(before messageId: MessageId? = nil,limit: Int? = nil,completion: (@MainActor(Error?) -> Void)? = nil)
+   public func startWatching(isInRecoveryMode: Bool,completion: ((Error?) -> Void)? = nil)
-   public func loadNextMessages(after messageId: MessageId? = nil,limit: Int? = nil,completion: (@MainActor(Error?) -> Void)? = nil)
+   public func stopWatching(completion: ((Error?) -> Void)? = nil)
-   public func loadPageAroundMessageId(_ messageId: MessageId,limit: Int? = nil,completion: (@MainActor(Error?) -> Void)? = nil)
+   public func loadPreviousMessages(before messageId: MessageId? = nil,limit: Int? = nil,completion: (@MainActor(Error?) -> Void)? = nil)
-   public func loadFirstPage(_ completion: (@MainActor(_ error: Error?) -> Void)? = nil)
+   public func loadNextMessages(after messageId: MessageId? = nil,limit: Int? = nil,completion: (@MainActor(Error?) -> Void)? = nil)
-   public func createNewMessage(messageId: MessageId? = nil,text: String,pinning: MessagePinning? = nil,isSilent: Bool = false,attachments: [AnyAttachmentPayload] = [],mentionedUserIds: [UserId] = [],quotedMessageId: MessageId? = nil,skipPush: Bool = false,skipEnrichUrl: Bool = false,restrictedVisibility: [UserId] = [],location: NewLocationInfo? = nil,extraData: [String: RawJSON] = [:],completion: (@MainActor(Result<MessageId, Error>) -> Void)? = nil)
+   public func loadPageAroundMessageId(_ messageId: MessageId,limit: Int? = nil,completion: (@MainActor(Error?) -> Void)? = nil)
-   public func deleteMessage(messageId: MessageId,hard: Bool = false,completion: (@MainActor(Error?) -> Void)? = nil)
+   public func loadFirstPage(_ completion: (@MainActor(_ error: Error?) -> Void)? = nil)
-   public func loadReactions(for messageId: MessageId,limit: Int = 25,offset: Int = 0,completion: @escaping @MainActor(Result<[ChatMessageReaction], Error>) -> Void)
+   public func createNewMessage(messageId: MessageId? = nil,text: String,pinning: MessagePinning? = nil,isSilent: Bool = false,attachments: [AnyAttachmentPayload] = [],mentionedUserIds: [UserId] = [],quotedMessageId: MessageId? = nil,skipPush: Bool = false,skipEnrichUrl: Bool = false,restrictedVisibility: [UserId] = [],location: NewLocationInfo? = nil,extraData: [String: RawJSON] = [:],completion: (@MainActor(Result<MessageId, Error>) -> Void)? = nil)
-   public func flag(messageId: MessageId,reason: String? = nil,extraData: [String: RawJSON]? = nil,completion: (@MainActor(Error?) -> Void)? = nil)
+   public func deleteMessage(messageId: MessageId,hard: Bool = false,completion: (@MainActor(Error?) -> Void)? = nil)
-   public func unflag(messageId: MessageId,completion: (@MainActor(Error?) -> Void)? = nil)
+   public func loadReactions(for messageId: MessageId,limit: Int = 25,offset: Int = 0,completion: @escaping @MainActor(Result<[ChatMessageReaction], Error>) -> Void)
-   public func addReaction(_ type: MessageReactionType,to messageId: MessageId,score: Int = 1,enforceUnique: Bool = false,skipPush: Bool = false,pushEmojiCode: String? = nil,extraData: [String: RawJSON] = [:],completion: (@MainActor(Error?) -> Void)? = nil)
+   public func flag(messageId: MessageId,reason: String? = nil,extraData: [String: RawJSON]? = nil,completion: (@MainActor(Error?) -> Void)? = nil)
-   public func deleteReaction(_ type: MessageReactionType,from messageId: MessageId,completion: (@MainActor(Error?) -> Void)? = nil)
+   public func unflag(messageId: MessageId,completion: (@MainActor(Error?) -> Void)? = nil)
-   public func pin(messageId: MessageId,pinning: MessagePinning = .noExpiration,completion: (@MainActor(Error?) -> Void)? = nil)
+   public func addReaction(_ type: MessageReactionType,to messageId: MessageId,score: Int = 1,enforceUnique: Bool = false,skipPush: Bool = false,pushEmojiCode: String? = nil,extraData: [String: RawJSON] = [:],completion: (@MainActor(Error?) -> Void)? = nil)
-   public func unpin(messageId: MessageId,completion: (@MainActor(Error?) -> Void)? = nil)
+   public func deleteReaction(_ type: MessageReactionType,from messageId: MessageId,completion: (@MainActor(Error?) -> Void)? = nil)
-   public func loadPinnedMessages(pageSize: Int = .messagesPageSize,sorting: [Sorting<PinnedMessagesSortingKey>] = [],pagination: PinnedMessagesPagination? = nil,completion: @escaping @MainActor(Result<[ChatMessage], Error>) -> Void)
+   public func pin(messageId: MessageId,pinning: MessagePinning = .noExpiration,completion: (@MainActor(Error?) -> Void)? = nil)
-   public func currentCooldownTime()-> Int
+   public func unpin(messageId: MessageId,completion: (@MainActor(Error?) -> Void)? = nil)
-   public func enableSlowMode(cooldownDuration: Int,completion: (@MainActor(Error?) -> Void)? = nil)
+   public func loadPinnedMessages(pageSize: Int = .messagesPageSize,sorting: [Sorting<PinnedMessagesSortingKey>] = [],pagination: PinnedMessagesPagination? = nil,completion: @escaping @MainActor(Result<[ChatMessage], Error>) -> Void)
-   public func disableSlowMode(completion: (@MainActor(Error?) -> Void)? = nil)
+   public func currentCooldownTime()-> Int
-   public func pause()
+   public func enableSlowMode(cooldownDuration: Int,completion: (@MainActor(Error?) -> Void)? = nil)
-   public func resume(completion: (@MainActor(Error?) -> Void)? = nil)
+   public func disableSlowMode(completion: (@MainActor(Error?) -> Void)? = nil)
-   public func eventsController(_ controller: EventsController,didReceiveEvent event: Event)
+   public func pause()
-   public func applicationDidReceiveMemoryWarning()
+   public func resume(completion: (@MainActor(Error?) -> Void)? = nil)
-   public func applicationDidMoveToForeground()
+   public func eventsController(_ controller: EventsController,didReceiveEvent event: Event)
+   public func applicationDidReceiveMemoryWarning()
+   public func applicationDidMoveToForeground()

 public struct ChatChannel  
-   public let membership: ChatChannelMember?
+   public internal var membership: ChatChannelMember?
-   public func changing(name: String? = nil,imageURL: URL? = nil,reads: [ChatChannelRead]? = nil,extraData: [String: RawJSON]? = nil)-> ChatChannel
+   public func changing(name: String? = nil,imageURL: URL? = nil,lastMessageAt: Date? = nil,createdAt: Date? = nil,deletedAt: Date? = nil,updatedAt: Date? = nil,truncatedAt: Date? = nil,isHidden: Bool? = nil,createdBy: ChatUser? = nil,config: ChannelConfig? = nil,ownCapabilities: Set<ChannelCapability>? = nil,isFrozen: Bool? = nil,isDisabled: Bool? = nil,isBlocked: Bool? = nil,reads: [ChatChannelRead]? = nil,members: [ChatChannelMember]? = nil,membership: ChatChannelMember? = nil,memberCount: Int? = nil,watchers: [ChatUser]? = nil,watcherCount: Int? = nil,team: TeamId? = nil,cooldownDuration: Int? = nil,pinnedMessages: [ChatMessage]? = nil,extraData: [String: RawJSON]? = nil)-> ChatChannel

Copy link

@Stream-SDK-Bot
Copy link
Collaborator Author

SDK Performance

target metric benchmark branch performance status
MessageList Hitches total duration 10 ms 5.01 ms 49.9% 🔼 🟢
Duration 2.6 s 2.56 s 1.54% 🔼 🟢
Hitch time ratio 4 ms per s 1.95 ms per s 51.25% 🔼 🟢
Frame rate 75 fps 77.89 fps 3.85% 🔼 🟢
Number of hitches 1 0.4 60.0% 🔼 🟢

@Stream-SDK-Bot
Copy link
Collaborator Author

SDK Size

title previous release current release diff status
StreamChat 8.04 MB 8.08 MB +34 KB 🟢
StreamChatUI 4.86 MB 4.86 MB 0 KB 🟢

Copy link

Build for regression testing №123457089 has been uploaded to TestFlight 🎁

@nuno-vieira
Copy link
Member

/merge release

@testableapple
Copy link
Contributor

Publication of the release has been launched 👍

@github-actions github-actions bot merged commit 914fc97 into main Aug 21, 2025
16 checks passed
@github-actions github-actions bot deleted the release/4.86.0 branch August 21, 2025 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants