-
Notifications
You must be signed in to change notification settings - Fork 110
4.90.0 Release #1005
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.90.0 Release #1005
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
…976) * Fix crash when using font that does not support bold trait * Update CHANGELOG with bug fix for font crash Added a fix for a crash related to unsupported bold fonts. * Update CHANGELOG.md * Clarify font trait support in changelog entry Updated the changelog entry for issue #976 to clarify the font trait support.
…omization of the mention command handler (#979) * Make the `commandsHandler` and the mention methods public to allow customization of the mention command handler. * Update change log
* Open markdown formatter (#974) * Refactor markdownFormatter to use DefaultMarkdownFormatter and update MarkdownFormatter protocol for improved formatting capabilities * Update Utils to allow custom markdownFormatter initialization * feat(Formatter): make format method open for better accessibility * Update CHANGELOG.md --------- Co-authored-by: Hossam Youssof <eng.hossam.youssof@gmail.com>
* Add support for overriding onImageTap in LinkAttachmentView * Update CHANGELOG.md
* Fix the unread banner not shown if the whole channel is unread * Fix channel marking read when the user just marked a message as unread * Fix channel not marking read when passing by the unread message * Fix marking a message unread causing the message list to randomly scroll * Add test coverage to unread banner not shown when whole channel is unread * Add test coverage to marking channel read after setting a message unread * Update CHANGELOG.md * Add comment explaining new logic of firstUnreadMessageId * Update CHANGELOG.md
* Add support for customizing text colors in `LinkAttachmentView` * Update CHANGELOG with new features and fixes Added support for customizing text colors in LinkAttachmentView.
* Expose `MediaAttachment` properties and init * Update CHANGELOG with new features and fixes Updated CHANGELOG to include recent feature additions and bug fixes.
Public Interface+ open class DefaultMarkdownFormatter: MarkdownFormatter
+
+ public init()
+
+
+ @available(iOS 15, *) open func format(_ string: String,attributes: AttributeContainer,layoutDirection: LayoutDirection)-> AttributedString
+ public struct MediaAttachmentType: RawRepresentable
+
+ public let rawValue: String
+ public static let image
+ public static let video
+
+
+ public init(rawValue: String)
+ public protocol MarkdownFormatter
+ public struct ParticipantAction: Identifiable
+
+ public var id: String
+ public let title: String
+ public let iconName: String
+ public let action: () -> Void
+ public let confirmationPopup: ConfirmationPopup?
+ public let isDestructive: Bool
+ public var navigationDestination: AnyView?
+
+
+ public init(title: String,iconName: String,action: @escaping () -> Void,confirmationPopup: ConfirmationPopup?,isDestructive: Bool)
public struct ColorPalette
- public lazy var composerPlaceholderColor: UIColor
+ public var messageLinkAttachmentAuthorColor: Color
- public lazy var composerInputBackground: UIColor
+ public var messageLinkAttachmentTitleColor: Color
- public lazy var composerInputHighlightedBorder: UIColor
+ public var messageLinkAttachmentTextColor: Color
- public var navigationBarTitle: UIColor
+ public lazy var composerPlaceholderColor: UIColor
- public var navigationBarSubtitle: UIColor
+ public lazy var composerInputBackground: UIColor
- public var navigationBarTintColor: Color
+ public lazy var composerInputHighlightedBorder: UIColor
- public var navigationBarBackground: UIColor?
+ public var navigationBarGlyph: UIColor
- public var bannerBackgroundColor: UIColor
+ public var navigationBarTitle: UIColor
-
+ public var navigationBarSubtitle: UIColor
-
+ public var navigationBarTintColor: Color
- public init()
+ public var navigationBarBackground: UIColor?
+ public var bannerBackgroundColor: UIColor
+
+
+ public init()
public struct ChatChannelInfoView: View, KeyboardReadable
- public init(factory: Factory = DefaultViewFactory.shared,channel: ChatChannel,shownFromMessageList: Bool = false)
+ public init(factory: Factory = DefaultViewFactory.shared,viewModel: ChatChannelInfoViewModel? = nil,channel: ChatChannel,shownFromMessageList: Bool = false)
open class ChatChannelViewModel: ObservableObject, MessagesDataSource
- @Published public private var channel: ChatChannel?
+ public var currentUserMarkedMessageUnread: Bool
- public var isMessageThread: Bool
+ @Published public private var channel: ChatChannel?
-
+ public var isMessageThread: Bool
-
+
- public init(channelController: ChatChannelController,messageController: ChatMessageController? = nil,scrollToMessage: ChatMessage? = nil)
+
-
+ public init(channelController: ChatChannelController,messageController: ChatMessageController? = nil,scrollToMessage: ChatMessage? = nil)
-
+
- public func scrollToLastMessage()
+
- public func messageSentTapped()
+ public func scrollToLastMessage()
- public func jumpToMessage(messageId: String)-> Bool
+ public func messageSentTapped()
- open func handleMessageAppear(index: Int,scrollDirection: ScrollDirection)
+ public func jumpToMessage(messageId: String)-> Bool
- open func groupMessages()
+ open func handleMessageAppear(index: Int,scrollDirection: ScrollDirection)
- public func showReactionOverlay(for view: AnyView)
+ open func groupMessages()
- public func showBouncedActionsView(for message: ChatMessage)
+ public func showReactionOverlay(for view: AnyView)
- public func deleteMessage(_ message: ChatMessage)
+ public func showBouncedActionsView(for message: ChatMessage)
- public func resendMessage(_ message: ChatMessage)
+ public func deleteMessage(_ message: ChatMessage)
- public func editMessage(_ message: ChatMessage)
+ public func resendMessage(_ message: ChatMessage)
- open func messageActionExecuted(_ messageActionInfo: MessageActionInfo)
+ public func editMessage(_ message: ChatMessage)
- @objc public func onViewAppear()
+ open func messageActionExecuted(_ messageActionInfo: MessageActionInfo)
- @objc public func onViewDissappear()
+ @objc public func onViewAppear()
- public func setActive()
+ @objc public func onViewDissappear()
+ public func setActive()
public struct LinkAttachmentView: View
- public init(linkAttachment: ChatMessageLinkAttachment,width: CGFloat,isFirst: Bool)
+ public init(linkAttachment: ChatMessageLinkAttachment,width: CGFloat,isFirst: Bool,onImageTap: ((ChatMessageLinkAttachment) -> Void)? = nil)
public class Utils
- public var dateFormatter: DateFormatter
+ public var markdownFormatter: MarkdownFormatter
- public var messageRelativeDateFormatter: DateFormatter
+ public var dateFormatter: DateFormatter
- public var galleryHeaderViewDateFormatter: DateFormatter
+ public var messageRelativeDateFormatter: DateFormatter
- public var videoPreviewLoader: VideoPreviewLoader
+ public var galleryHeaderViewDateFormatter: DateFormatter
- public var imageLoader: ImageLoading
+ public var videoPreviewLoader: VideoPreviewLoader
- public var imageCDN: ImageCDN
+ public var imageLoader: ImageLoading
- public var imageProcessor: ImageProcessor
+ public var imageCDN: ImageCDN
- public var imageMerger: ImageMerging
+ public var imageProcessor: ImageProcessor
- public var fileCDN: FileCDN
+ public var imageMerger: ImageMerging
- public var channelNamer: ChatChannelNamer
+ public var fileCDN: FileCDN
- public var chatUserNamer: ChatUserNamer
+ public var channelNamer: ChatChannelNamer
- public var channelAvatarsMerger: ChannelAvatarsMerging
+ public var chatUserNamer: ChatUserNamer
- public var messageTypeResolver: MessageTypeResolving
+ public var channelAvatarsMerger: ChannelAvatarsMerging
- public var messageActionsResolver: MessageActionsResolving
+ public var messageTypeResolver: MessageTypeResolving
- public var messagePreviewFormatter: MessagePreviewFormatter
+ public var messageActionsResolver: MessageActionsResolving
- public var commandsConfig: CommandsConfig
+ public var messagePreviewFormatter: MessagePreviewFormatter
- public var channelListConfig: ChannelListConfig
+ public var commandsConfig: CommandsConfig
- public var messageListConfig: MessageListConfig
+ public var channelListConfig: ChannelListConfig
- public var composerConfig: ComposerConfig
+ public var messageListConfig: MessageListConfig
- public var pollsConfig: PollsConfig
+ public var composerConfig: ComposerConfig
- public var shouldSyncChannelControllerOnAppear: (ChatChannelController) -> Bool
+ public var pollsConfig: PollsConfig
- public var snapshotCreator: SnapshotCreator
+ public var shouldSyncChannelControllerOnAppear: (ChatChannelController) -> Bool
- public var messageIdBuilder: MessageIdBuilder
+ public var snapshotCreator: SnapshotCreator
- public var sortReactions: (MessageReactionType, MessageReactionType) -> Bool
+ public var messageIdBuilder: MessageIdBuilder
- public var channelHeaderLoader: ChannelHeaderLoader
+ public var sortReactions: (MessageReactionType, MessageReactionType) -> Bool
- public var videoDurationFormatter: VideoDurationFormatter
+ public var channelHeaderLoader: ChannelHeaderLoader
- public var audioRecordingNameFormatter: AudioRecordingNameFormatter
+ public var videoDurationFormatter: VideoDurationFormatter
- public var audioPlayerBuilder: () -> AudioPlaying
+ public var audioRecordingNameFormatter: AudioRecordingNameFormatter
- public var audioPlayer: AudioPlaying
+ public var audioPlayerBuilder: () -> AudioPlaying
- public var audioRecorderBuilder: () -> AudioRecording
+ public var audioPlayer: AudioPlaying
- public var audioRecorder: AudioRecording
+ public var audioRecorderBuilder: () -> AudioRecording
- public lazy var audioSessionFeedbackGenerator: AudioSessionFeedbackGenerator
+ public var audioRecorder: AudioRecording
- public var originalTranslationsStore
+ public lazy var audioSessionFeedbackGenerator: AudioSessionFeedbackGenerator
- public static var defaultSortReactions: (MessageReactionType, MessageReactionType) -> Bool
+ public var originalTranslationsStore
-
+ public static var defaultSortReactions: (MessageReactionType, MessageReactionType) -> Bool
-
+
- public init(dateFormatter: DateFormatter = .makeDefault(),messageRelativeDateFormatter: DateFormatter = MessageRelativeDateFormatter(),galleryHeaderViewDateFormatter: DateFormatter = GalleryHeaderViewDateFormatter(),videoPreviewLoader: VideoPreviewLoader = DefaultVideoPreviewLoader(),imageLoader: ImageLoading = NukeImageLoader(),imageCDN: ImageCDN = StreamImageCDN(),imageProcessor: ImageProcessor = NukeImageProcessor(),imageMerger: ImageMerging = DefaultImageMerger(),fileCDN: FileCDN = DefaultFileCDN(),channelAvatarsMerger: ChannelAvatarsMerging = ChannelAvatarsMerger(),messageTypeResolver: MessageTypeResolving = MessageTypeResolver(),messageActionResolver: MessageActionsResolving = MessageActionsResolver(),messagePreviewFormatter: MessagePreviewFormatter = MessagePreviewFormatter(),commandsConfig: CommandsConfig = DefaultCommandsConfig(),channelListConfig: ChannelListConfig = ChannelListConfig(),messageListConfig: MessageListConfig = MessageListConfig(),composerConfig: ComposerConfig = ComposerConfig(),pollsConfig: PollsConfig = PollsConfig(),channelNamer: @escaping ChatChannelNamer = DefaultChatChannelNamer(),chatUserNamer: ChatUserNamer = DefaultChatUserNamer(),snapshotCreator: SnapshotCreator = DefaultSnapshotCreator(),messageIdBuilder: MessageIdBuilder = DefaultMessageIdBuilder(),channelHeaderLoader: ChannelHeaderLoader = ChannelHeaderLoader(),videoDurationFormatter: VideoDurationFormatter = DefaultVideoDurationFormatter(),audioRecordingNameFormatter: AudioRecordingNameFormatter = DefaultAudioRecordingNameFormatter(),sortReactions: @escaping (MessageReactionType, MessageReactionType) -> Bool = Utils.defaultSortReactions,shouldSyncChannelControllerOnAppear: @escaping (ChatChannelController) -> Bool = { _ in true })
+
+ public init(markdownFormatter: MarkdownFormatter = DefaultMarkdownFormatter(),dateFormatter: DateFormatter = .makeDefault(),messageRelativeDateFormatter: DateFormatter = MessageRelativeDateFormatter(),galleryHeaderViewDateFormatter: DateFormatter = GalleryHeaderViewDateFormatter(),videoPreviewLoader: VideoPreviewLoader = DefaultVideoPreviewLoader(),imageLoader: ImageLoading = NukeImageLoader(),imageCDN: ImageCDN = StreamImageCDN(),imageProcessor: ImageProcessor = NukeImageProcessor(),imageMerger: ImageMerging = DefaultImageMerger(),fileCDN: FileCDN = DefaultFileCDN(),channelAvatarsMerger: ChannelAvatarsMerging = ChannelAvatarsMerger(),messageTypeResolver: MessageTypeResolving = MessageTypeResolver(),messageActionResolver: MessageActionsResolving = MessageActionsResolver(),messagePreviewFormatter: MessagePreviewFormatter = MessagePreviewFormatter(),commandsConfig: CommandsConfig = DefaultCommandsConfig(),channelListConfig: ChannelListConfig = ChannelListConfig(),messageListConfig: MessageListConfig = MessageListConfig(),composerConfig: ComposerConfig = ComposerConfig(),pollsConfig: PollsConfig = PollsConfig(),channelNamer: @escaping ChatChannelNamer = DefaultChatChannelNamer(),chatUserNamer: ChatUserNamer = DefaultChatUserNamer(),snapshotCreator: SnapshotCreator = DefaultSnapshotCreator(),messageIdBuilder: MessageIdBuilder = DefaultMessageIdBuilder(),channelHeaderLoader: ChannelHeaderLoader = ChannelHeaderLoader(),videoDurationFormatter: VideoDurationFormatter = DefaultVideoDurationFormatter(),audioRecordingNameFormatter: AudioRecordingNameFormatter = DefaultAudioRecordingNameFormatter(),sortReactions: @escaping (MessageReactionType, MessageReactionType) -> Bool = Utils.defaultSortReactions,shouldSyncChannelControllerOnAppear: @escaping (ChatChannelController) -> Bool = { _ in true })
public struct MediaAttachment: Identifiable, Equatable
- public var id: String
+ public let url: URL
-
+ public let type: MediaAttachmentType
-
+ public var uploadingState: AttachmentUploadingState?
- public static func ==(lhs: MediaAttachment,rhs: MediaAttachment)-> Bool
+ public var id: String
+
+
+ public init(url: URL,type: MediaAttachmentType,uploadingState: AttachmentUploadingState? = nil)
+
+
+ public static func ==(lhs: MediaAttachment,rhs: MediaAttachment)-> Bool
public struct LateResize: ImageProcessing
- public init(sizeProvider: @escaping @Sendable() -> CGSize)
+ public init(sizeProvider: @escaping @Sendable () -> CGSize)
public struct ChatInfoParticipantsView: View
- public init(factory: Factory = DefaultViewFactory.shared,participants: [ParticipantInfo],onItemAppear: @escaping (ParticipantInfo) -> Void)
+ public init(factory: Factory = DefaultViewFactory.shared,participants: [ParticipantInfo],onItemAppear: @escaping (ParticipantInfo) -> Void,selectedParticipant: Binding<ParticipantInfo?> = .constant(nil))
open class MessageComposerViewModel: ObservableObject
- public var mentionedUsers
+ public lazy var commandsHandler
- public var sendButtonEnabled: Bool
+ public var mentionedUsers
- public var sendInChannelShown: Bool
+ public var sendButtonEnabled: Bool
- public var isDirectChannel: Bool
+ public var sendInChannelShown: Bool
- public var showCommandsOverlay: Bool
+ public var isDirectChannel: Bool
- public var inputComposerShouldScroll: Bool
+ public var showCommandsOverlay: Bool
-
+ public var inputComposerShouldScroll: Bool
-
+
- public init(channelController: ChatChannelController,messageController: ChatMessageController?,eventsController: EventsController? = nil,quotedMessage: Binding<ChatMessage?>? = nil)
+
-
+ public init(channelController: ChatChannelController,messageController: ChatMessageController?,eventsController: EventsController? = nil,quotedMessage: Binding<ChatMessage?>? = nil)
-
+
- public func fillEditedMessage(_ editedMessage: ChatMessage?)
+
- public func fillDraftMessage()
+ public func fillEditedMessage(_ editedMessage: ChatMessage?)
- public func updateDraftMessage(quotedMessage: ChatMessage?,isSilent: Bool = false,extraData: [String: RawJSON] = [:])
+ public func fillDraftMessage()
- public func deleteDraftMessage()
+ public func updateDraftMessage(quotedMessage: ChatMessage?,isSilent: Bool = false,extraData: [String: RawJSON] = [:])
- open func sendMessage(quotedMessage: ChatMessage?,editedMessage: ChatMessage?,isSilent: Bool = false,skipPush: Bool = false,skipEnrichUrl: Bool = false,extraData: [String: RawJSON] = [:],completion: @escaping () -> Void)
+ public func deleteDraftMessage()
- public func change(pickerState: AttachmentPickerState)
+ open func sendMessage(quotedMessage: ChatMessage?,editedMessage: ChatMessage?,isSilent: Bool = false,skipPush: Bool = false,skipEnrichUrl: Bool = false,extraData: [String: RawJSON] = [:],completion: @escaping () -> Void)
- public func imageTapped(_ addedAsset: AddedAsset)
+ public func change(pickerState: AttachmentPickerState)
- public func imagePasted(_ image: UIImage)
+ public func imageTapped(_ addedAsset: AddedAsset)
- public func removeAttachment(with id: String)
+ public func imagePasted(_ image: UIImage)
- public func cameraImageAdded(_ image: AddedAsset)
+ public func removeAttachment(with id: String)
- public func isImageSelected(with id: String)-> Bool
+ public func cameraImageAdded(_ image: AddedAsset)
- public func customAttachmentTapped(_ attachment: CustomAttachment)
+ public func isImageSelected(with id: String)-> Bool
- public func isCustomAttachmentSelected(_ attachment: CustomAttachment)-> Bool
+ public func customAttachmentTapped(_ attachment: CustomAttachment)
- public func askForPhotosPermission()
+ public func isCustomAttachmentSelected(_ attachment: CustomAttachment)-> Bool
- public func handleCommand(for text: Binding<String>,selectedRangeLocation: Binding<Int>,command: Binding<ComposerCommand?>,extraData: [String: Any])
+ public func askForPhotosPermission()
- open func convertAddedAssetsToPayloads()throws -> [AnyAttachmentPayload]
+ public func handleCommand(for text: Binding<String>,selectedRangeLocation: Binding<Int>,command: Binding<ComposerCommand?>,extraData: [String: Any])
+ open func convertAddedAssetsToPayloads()throws -> [AnyAttachmentPayload]
+ public func checkForMentionedUsers(commandId: String?,extraData: [String: Any])
+ public func clearRemovedMentions()
+ public func clearInputData()
+ public func checkChannelCooldown()
public struct LinkAttachmentContainer: View
- public init(factory: Factory,message: ChatMessage,width: CGFloat,isFirst: Bool,scrolledId: Binding<String?>)
+ public init(factory: Factory,message: ChatMessage,width: CGFloat,isFirst: Bool,scrolledId: Binding<String?>,onImageTap: ((ChatMessageLinkAttachment) -> Void)? = nil)
- public class ChatChannelInfoViewModel: ObservableObject, ChatChannelControllerDelegate
+ open class ChatChannelInfoViewModel: ObservableObject, ChatChannelControllerDelegate
- public var shouldShowLeaveConversationButton: Bool
+ @Published public var selectedParticipant: ParticipantInfo?
- public var canRenameChannel: Bool
+ open var shouldShowLeaveConversationButton: Bool
- public var shouldShowAddUserButton: Bool
+ open var canRenameChannel: Bool
- public var showSingleMemberDMView: Bool
+ open var shouldShowAddUserButton: Bool
- public var displayedParticipants: [ParticipantInfo]
+ public var showSingleMemberDMView: Bool
- public var leaveButtonTitle: String
+ public var displayedParticipants: [ParticipantInfo]
- public var leaveConversationDescription: String
+ public var leaveButtonTitle: String
- public var showMoreUsersButtonTitle: String
+ public var leaveConversationDescription: String
- public var notDisplayedParticipantsCount: Int
+ public var showMoreUsersButtonTitle: String
- public var mutedText: String
+ public var notDisplayedParticipantsCount: Int
- public var showMoreUsersButton: Bool
+ public var mutedText: String
-
+ public var showMoreUsersButton: Bool
-
+
- public init(channel: ChatChannel)
+
-
+ public init(channel: ChatChannel)
-
+
- public func onlineInfo(for user: ChatUser)-> String
+
- public func onParticipantAppear(_ participantInfo: ParticipantInfo)
+ public func onlineInfo(for user: ChatUser)-> String
- public func leaveConversationTapped(completion: @escaping () -> Void)
+ public func onParticipantAppear(_ participantInfo: ParticipantInfo)
- public func cancelGroupRenaming()
+ public func leaveConversationTapped(completion: @escaping () -> Void)
- public func confirmGroupRenaming()
+ public func cancelGroupRenaming()
- public func channelController(_ channelController: ChatChannelController,didUpdateChannel channel: EntityChange<ChatChannel>)
+ public func confirmGroupRenaming()
- public func addUserTapped(_ user: ChatUser)
+ public func channelController(_ channelController: ChatChannelController,didUpdateChannel channel: EntityChange<ChatChannel>)
+ public func addUserTapped(_ user: ChatUser)
+ open func participantActions(for participant: ParticipantInfo)-> [ParticipantAction]
+ public func muteAction(participant: ParticipantInfo,onDismiss: @escaping () -> Void,onError: @escaping (Error) -> Void)-> ParticipantAction
+ public func unmuteAction(participant: ParticipantInfo,onDismiss: @escaping () -> Void,onError: @escaping (Error) -> Void)-> ParticipantAction
+ public func removeUserAction(participant: ParticipantInfo,onDismiss: @escaping () -> Void,onError: @escaping (Error) -> Void)-> ParticipantAction |
SDK Size
|
Build for regression testing №129 has been uploaded to TestFlight 🎁 |
|
laevandus
approved these changes
Oct 8, 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
commandsHandler
and makes the mention methods public #979MarkdownFormatter
so that it can be customised #978onImageTap
inLinkAttachmentView
#986LinkAttachmentView
#992MediaAttachment
properties and initializer #1000ColorPalette.navigationBarGlyph
for configuring the glyph color for buttons in navigation bars #999ChatChannelInfoViewModel
properties:shouldShowLeaveConversationButton
,canRenameChannel
, andshouldShowAddUserButton
#995🐞 Fixed
ColorPalette.navigationBarTint
for the background of the add users button #999