-
Notifications
You must be signed in to change notification settings - Fork 107
4.87.0 Release #937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
4.87.0 Release #937
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
β¦when swiping to another item in the gallery. (#934) * Fix the video attachments now fetch the URL once on appear and pause when swiping to another item in the gallery. * Resume playback once the video appears
* Update StreamChat dependency to 4.87.0 * Add new updload method to the mock
Public Interface+ public struct MediaAttachmentContentView: View
+
+ public var body: some View
+
+
+ public init(factory: Factory,mediaItem: MediaItem,mediaAttachment: MediaAttachment,allMediaAttachments: [MediaAttachment],itemWidth: CGFloat,index: Int)
+ public struct MediaItem: Identifiable
+
+ public let id: String
+ public let isVideo: Bool
+ public let message: ChatMessage
+ public var videoAttachment: ChatMessageVideoAttachment?
+ public var imageAttachment: ChatMessageImageAttachment?
+ public var mediaAttachment: MediaAttachment?
+
+
+ public init(id: String,isVideo: Bool,message: ChatMessage,videoAttachment: ChatMessageVideoAttachment?,imageAttachment: ChatMessageImageAttachment?)
open class ChatChannelListViewModel: ObservableObject, ChatChannelListControllerDelegate, ChatMessageSearchControllerDelegate
- @Published public var channels
+ @Published public var scrolledChannelId: String?
- @Published public var selectedChannel: ChannelSelectionInfo?
+ @Published public var channels
- @Published public var swipedChannelId: String?
+ @Published public var selectedChannel: ChannelSelectionInfo?
- @Published public var channelAlertType: ChannelAlertType?
+ @Published public var swipedChannelId: String?
- @Published public var customChannelPopupType: ChannelPopupType?
+ @Published public var channelAlertType: ChannelAlertType?
- @Published public var alertShown
+ @Published public var customChannelPopupType: ChannelPopupType?
- @Published public var loading
+ @Published public var alertShown
- @Published public var customAlertShown
+ @Published public var loading
- @Published public var searchType: ChannelListSearchType
+ @Published public var customAlertShown
- public var channelListSearchController: ChatChannelListController?
+ @Published public var searchType: ChannelListSearchType
- public var messageSearchController: ChatMessageSearchController?
+ public var channelListSearchController: ChatChannelListController?
- @Published public var loadingSearchResults
+ public var messageSearchController: ChatMessageSearchController?
- @Published public var searchResults
+ @Published public var loadingSearchResults
- @Published public var searchText
+ @Published public var searchResults
- public var isSearching: Bool
+ @Published public var searchText
-
+ public var isSearching: Bool
-
+
- public init(channelListController: ChatChannelListController? = nil,selectedChannelId: String? = nil,searchType: ChannelListSearchType = .channels)
+
-
+ public init(channelListController: ChatChannelListController? = nil,selectedChannelId: String? = nil,searchType: ChannelListSearchType = .channels)
-
+
- public func name(forChannel channel: ChatChannel)-> String
+
- public func checkForChannels(index: Int)
+ public func name(forChannel channel: ChatChannel)-> String
- public func loadAdditionalSearchResults(index: Int)
+ public func checkForChannels(index: Int)
- public func onlineIndicatorShown(for channel: ChatChannel)-> Bool
+ public func openChannel(with channelId: ChannelId)
- public func onDeleteTapped(channel: ChatChannel)
+ public func loadAdditionalSearchResults(index: Int)
- public func onMoreTapped(channel: ChatChannel)
+ public func onlineIndicatorShown(for channel: ChatChannel)-> Bool
- public func delete(channel: ChatChannel)
+ public func onDeleteTapped(channel: ChatChannel)
- open func showErrorPopup(_ error: Error?)
+ public func onMoreTapped(channel: ChatChannel)
- open func setChannelAlertType(_ channelAlertType: ChannelAlertType)
+ public func delete(channel: ChatChannel)
- public func controller(_ controller: ChatChannelListController,didChangeChannels changes: [ListChange<ChatChannel>])
+ open func showErrorPopup(_ error: Error?)
- open func controller(_ controller: ChatChannelListController,shouldAddNewChannelToList channel: ChatChannel)-> Bool
+ open func setChannelAlertType(_ channelAlertType: ChannelAlertType)
- open func controller(_ controller: ChatChannelListController,shouldListUpdatedChannel channel: ChatChannel)-> Bool
+ public func controller(_ controller: ChatChannelListController,didChangeChannels changes: [ListChange<ChatChannel>])
- public func preselectChannelIfNeeded()
+ open func controller(_ controller: ChatChannelListController,shouldAddNewChannelToList channel: ChatChannel)-> Bool
- public func controller(_ controller: ChatMessageSearchController,didChangeMessages changes: [ListChange<ChatMessage>])
+ open func controller(_ controller: ChatChannelListController,shouldListUpdatedChannel channel: ChatChannel)-> Bool
- open func performMessageSearch()
+ public func preselectChannelIfNeeded()
- open func performChannelSearch()
+ public func controller(_ controller: ChatMessageSearchController,didChangeMessages changes: [ListChange<ChatMessage>])
+ open func performMessageSearch()
+ open func performChannelSearch()
public struct ChannelList: View
- public init(factory: Factory,channels: LazyCachedMapCollection<ChatChannel>,selectedChannel: Binding<ChannelSelectionInfo?>,swipedChannelId: Binding<String?>,scrollable: Bool = true,onlineIndicatorShown: ((ChatChannel) -> Bool)? = nil,imageLoader: ((ChatChannel) -> UIImage)? = nil,onItemTap: @escaping (ChatChannel) -> Void,onItemAppear: @escaping (Int) -> Void,channelNaming: ((ChatChannel) -> String)? = nil,channelDestination: @escaping (ChannelSelectionInfo) -> Factory.ChannelDestination,trailingSwipeRightButtonTapped: @escaping (ChatChannel) -> Void = { _ in },trailingSwipeLeftButtonTapped: @escaping (ChatChannel) -> Void = { _ in },leadingSwipeButtonTapped: @escaping (ChatChannel) -> Void = { _ in })
+ public init(factory: Factory,channels: LazyCachedMapCollection<ChatChannel>,selectedChannel: Binding<ChannelSelectionInfo?>,swipedChannelId: Binding<String?>,scrolledChannelId: Binding<String?> = .constant(nil),scrollable: Bool = true,onlineIndicatorShown: ((ChatChannel) -> Bool)? = nil,imageLoader: ((ChatChannel) -> UIImage)? = nil,onItemTap: @escaping (ChatChannel) -> Void,onItemAppear: @escaping (Int) -> Void,channelNaming: ((ChatChannel) -> String)? = nil,channelDestination: @escaping (ChannelSelectionInfo) -> Factory.ChannelDestination,trailingSwipeRightButtonTapped: @escaping (ChatChannel) -> Void = { _ in },trailingSwipeLeftButtonTapped: @escaping (ChatChannel) -> Void = { _ in },leadingSwipeButtonTapped: @escaping (ChatChannel) -> Void = { _ in }) |
SDK Size
|
Build for regression testing β121 has been uploaded to TestFlight π |
|
laevandus
approved these changes
Sep 1, 2025
/merge release |
Publication of the release has been launched π |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
β Added
MediaItem
andMediaAttachmentContentView
public to allow customization #935π Fixed
FileAttachmentPreview
view #930ChannelTitleView
#931