Releases: GetStream/stream-chat-swift
4.37.1
September 25, 2023
StreamChatUI
✅ Added
- Unread messages separator can be enabled/disabled using
components.isUnreadMessagesSeparatorEnabled(#2797)
🐞 Fixed
- Fix the unread messages banner showing on system messages #2793
- Fix compilation issues on NSEs when using Cocoapods #2798
- Fix frozen input view when editing a large message #2800
- Fix not scrolling to the caret position when typing a message and the caret is out of view #2800
- Fix not scrolling to the caret position when tapping on the shrink button #2800
- Fix composer input scrolling getting disabled on iOS 17 #2802
- Fix unread messages separator disapearing when marking channel as read #2797
4.37.0
September 18, 2023
StreamChat
✅ Added
- Allow injecting a custom URLSessionConfiguration in ChatClientConfig #2756
- Methods for deleting file and image in
ChatChannelController#2776
🐞 Fixed
- Fix core data warnings when logging with different user #2759
- Fix connecting user from background thread #2762
- Make the Logger thread-safe to avoid crashes #2775
- Improve
addDevice()andremoveDevice()with optimistic updates #2778 - Fix critical issue causing a query channel call for every new message #2781
- Added threshold for queued messages before being sent #2780
- Fix memory leak caused by
Timer.addTimeout()#2777
StreamChatUI
✅ Added
- Add customization support for
ChannelListLoadingView#2772 - Add support for disabling animation when jumping to message #2770
🐞 Fixed
- Fix tapping on the status bar scrolling to the bottom instead of the top #2763
- Fix empty channel header view for new DM Channels #2764
- Fix showing copy message action when text is empty #2765
- Fix link preview title covering text when image is not loaded #2773
- Fix UI Glitch in
ChannelListLoadingViewwith dummy data #2772 - Fix composer input jumping when shrink button is tapped #2774
🔄 Changed
4.36.0
August 28, 2023
StreamChat
✅ Added
🐞 Fixed
- Fix Message List not updating when user info changes #2738
- Fix Channel List items online presence not updating when user info changes #2742
- Fix Channel name not updating when member name changes #2742
StreamChatUI
✅ Added
- Add XCPrivacy manifest #2740
- Add digital signature to StreamChatUI XCFramework #2740
- Apply channel capabilities in UI components #2747
🐞 Fixed
- Fix Channel Header View not updating when user info changes #2742
- Fix Channel List rendering user name on subtitle text in 1:1 channel #2737
- Fix gap between the composer and the keyboard when parent view’s frame origin is not zero #2743
🔄 Changed
- Change timestamp formatting in Channel List according to the default design and other SDKs #2736
4.35.2
4.35.1
4.35.0
August 08, 2023
We have noticed an issue on older iOS versions with this release, please use 4.35.1 instead.
StreamChat
✅ Added
- Add support for sorting Channel List with custom data #2701
🐞 Fixed
- Fix pinning messages with attachments not synced with server #2698
- Fix messages disappearing in search query after entering a channel #2700
- Fix unread counts not updating if the channelRead information was missing from the persistence storage #2709
- Fix channel search with
autocompleteonly showing results if value started with the given query #2703
StreamChatUI
✅ Added
- Add Message Search UI Component #2703
- Add Channel Search UI Component #2703
- Add
Components.channelListSearchStrategyto enable channel list search #2703
🔄 Changed
4.34.0
July 05, 2023
StreamChat
✅ Added
🐞 Fixed
- Rescue messages that are stuck in
.sendingstate #2676 - Fix not being able to resend failed attachments #2680
StreamChatUI
✅ Added
- Add support for starting thread from oldest replies by enabling
Components.threadRepliesStartFromOldest#2682
🐞 Fixed
- Fix custom
ImageLoadingfunctions with default arguments not being called #2695 - Improve Channel List prefetching when loading more channels #2682
🔄 Changed
4.33.0
June 08, 2023
StreamChat
✅ Added
- Add support for shadow banning a member #2660
- Expose
ChatChannelMember.isShadowBannedFromChannel#2660 - Add support for passing a custom id when creating a message/reply #2667
🐞 Fixed
- Fix not being able to send messages when jumping to message in newest page #2647
- Fix shadow message making hidden channel reappear #2663(#2663)
StreamChatUI
✅ Added
- Add jumping to a reply inside a thread when tapping a quoted message which is inside a thread #2647
- Add jumping to a reply inside a thread when opening a thread from a thread reply in the channel view #2647
- Add jumping to a reply inside a thread when opening a channel from a reply as the given message around id #2647
- Add swipe to reply when
Components.default.messageSwipeToReplyEnabledistrue#2665 - Allow editing messages with attachments #2659
4.32.0
May 26, 2023
StreamChat
✅ Added
- Audio Support is now available. We added components that will allow you to record and playback audio files #2638
🐞 Fixed
- Fix "to-many key not allowed here" error when using the
memberNamefilter #2604 - Fix memory leak in
ChannelListControllerwhen loading more channels #2624 - Fix
isJumpingToMessagebeingtrueafter jumping to message on the first page #2608 - Fix
noTeamfilter that was causing an error #2632 - Fix muted and joined channel list queries with empty data (Auto Filtering Enabled) #2634
- Fix user information not being updated when receiving updated information from backend #2643
StreamChatUI
✅ Added
- Add
Components.threadRendersParentMessageEnabledto control whether the parent message is rendered in the Thread #2636 - Add
replaceQuery()andreplaceChannelListController()toChatChannelListVC#2630 - Voice Recording attachments are here. You can now record voice messages and share them in your conversations. You can enable it by setting the
Components.default.isVoiceRecordingEnabled = true. #2638 - Allow sending replies to soft-deleted parent messages #2633
🐞 Fixed
- Fix Composer's keyboard not adjusted when presenting alert controllers #2610
- Fix InputTextView not scrolling to caret when pasting long text #2609
- Fix scrollToBottomButton visible when jumping to message on the first page #2608
- Fix an issue where attachment preview in Composer was breaking when more attachments than the
maxNumberOfVerticalItemswere added. #2638
4.31.0
April 25, 2023
StreamChat
✅ Added
- Add
ChatMessageController.loadPageAroundReplyId()to load mid-page inside threads #2566
🐞 Fixed
- Fix channel disappearing when channel list auto-filtering is enabled and the user is not a member of the channel #2557
- Fix an issue which was causing the app to terminate when using a filter with the
inoperator andcidvalues #2561 - Fix unexpected 401s produced at launch while the chat is not yet fully connected #2559
- Fix crash when getting unread count in an invalid state #2570
- Fix crash when accessing FetchCache with an unexecuted NSFetchRequest #2572
- Fix an issue which was blocking a Guest Authentication operation to retrieve a connection token #2574
- Make connect/disconnect safer when network is offline #2571
- Make connect safer by logging out the user first if needed #2577
StreamChatUI
✅ Added
- Add support for bidirectional scrolling inside threads #2566
- Add support for jumping to a message which is not in the message list inside Threads #2566
🐞 Fixed
- Fix the message text font when the text accessibility setting is set to large after closing the app #2575
- Fix the timestamp label being clipped when the text font size is larger #2575
⚠️ Known Issue
When changing the text accessibility while the app is running, it won't affect the message cell text, only after closing the app. So this is a regression of #2325. This regression is necessary, since the original fix did not work 100% as it changed the text font size after closing the app, causing the font to be too big when the text accessibility is set to large. If you still want to have the dynamic font size to be working while the app is running, there is a workaround. You need to return a new UIFont instance everytime in ChatMessageContentView.defaultMessageFont. Example:
override var defaultMessageFont: UIFont {
UIFont.preferredFont(forTextStyle: .body)
}For more details, you can read the documentation of ChatMessageContentView.defaultMessageFont or read the PR #2575.