Releases: GetStream/stream-chat-swift
Releases · GetStream/stream-chat-swift
4.23.0
October 27, 2022
StreamChat
✅ Added
🐞 Fixed
- Fix CurrentChatUserController+Combine initialValue hard coded to
.noUnreadinstead of using the initial value from the current user data model #2334 - Allow Message Search pagination when using sort parameters #2347
- Fix TokenProvider sometimes being invoked two times when token is expired #2337
StreamChatUI
✅ Added
- Uses Stream's Image CDN v2 to reduce the memory footprint #2339
- Make ChatMessageListVC.tableView(heightForRowAt:) open #2342
🐞 Fixed
- Fix message text not dynamically scalable with content size category changes #2328
🚨 Minor Breaking Changes
Although we don't usually ship breaking changes in minor releases, in some cases where they are minimal and important, we have to do them to keep improving the SDK long-term. Either way, these changes are for advanced customizations which won't affect most of the customers.
- The
ImageCDNprotocol has some minor breaking changes that were needed to support the new Stream CDN v2 and to make it more scalable in the future.urlRequest(forImage:)->urlRequest(forImageUrl:resize:).cachingKey(forImage:)->cachingKey(forImageUrl:).- Removed
thumbnail(originalURL:preferreSize:). This is now handled byurlRequest(forImageUrl:resize:)as well. If your CDN does not support resizing, you can ignore the resize parameter.
4.22.0
September 26, 2022
StreamChat
✅ Added
- Added
timeoutIntervalForRequestto ChatClientConfig to control URLSession's timeout #2311 - Added
channel.ownCapabilities#2317
🐞 Fixed
- Fixed pagination in message list not working when synchronize does not succeed #2241
- Do not mark channels as read when the controller is not on screen #2288
- Do not show old messages not belonging to the history when paginating #2298). Caveat: Explained here
- Fix logic to determine errors related to connectivity #2311
- Stop logging false positive errors for 'channel.created' events #2314
- Properly handle Global Ban events #2312
StreamChatUI
✅ Added
- Highlighted user mentions support #2253
- New
ChatMessageListRouter.showUser()to easily provide a custom profile view when user clicks on an avatar or user mention #2253
🐞 Fixed
4.21.2
4.21.1
4.21.0
September 01, 2022
🚨 Known Issue: There is a crash on iOS <15 when inserting messages in an empty list, please update to 4.21.1
StreamChat
🔄 Changed
- From now on, if you want to logout the user from the app, especially when switching users, you should call the
client.logout()method instead ofclient.disconnect(). Read more here #2241
🐞 Fixed
- Fix hidden channels showing past history #2216
- Fix token not being refreshed because of parsing error #2248
- Fix deadlock caused by ListDatabaseObserver.startObserving() changes #2252
- Fix parsing
memberfield innotification.removed_from_channelevent #2259 - Fix broken pagination when quoting or pinning old messages #2258
StreamChatUI
🔄 Changed
- New Message List Diffing Implementation #2226
_messageListDiffingEnabledflag has been removed #2226
🐞 Fixed
4.20.0
August 02, 2022
StreamChat
✅ Added
- Support for message moderation (NNBB) #2103
🐞 Fixed
- Fix crash in ListDatabaseObserver.startObserving() #2177
- Make BaseOperation thread safe #2198
- Fix build issues in Xcode 14 beta #2202
- Improve consistency when retrieving Message after Push Notification #2200
- Make sure ChannelDTO is still valid when accessing Lazy blocks #2204
StreamChatUI
✅ Added
4.19.0
July 21, 2022
StreamChat
✅ Added
- Add hide history option when adding a new member #2155
- Add Extra Data Usage Improvements #2174
- For more details please read the documentation here.
🐞 Fixed
- Avoid triggering CoreData updates in willSave() #2156
- Sync active channels when no channel list #2163
StreamChatUI
🐞 Fixed
- Fix Channel missing messages from NSE push updates #2166
4.18.0
July 05, 2022
StreamChat
✅ Added
- Added missing
ChannelListFilterScopeandMemberListFilterScopefilter keys #2119
🔄 Changed
- Improved performance when saving big payloads (by 50% in some edge cases)#2113
- Chat SDK now leverages
chat.stream-io-api.comendpoint by default #2125 - JSON decoding performance is futher increased, parsing time reduced by another %50 #2128
- Better errors in case JSON decoding fails #2126
- File upload size limit is increased to 100MB #2136
🐞 Fixed
- Allow sending giphy messages programmatically #2124
- JSON decoding is now more robust, single incomplete/broken object won't disable whole channel list #2126
StreamChatUI
🐞 Fixed
- Allow scroll automatically to the bottom when sending a giphy from the middle of the message list #2130
4.17.0
June 22, 2022
StreamChat
✅ Added
parentMessageIdparameter for typing events #2080- Adds support for multi bundle push notifications #2101
🐞 Fixed
- Fix hidden channels not appearing on relaunch #2056
- Fix
channel.hiddenevent failing to decode on launch/reconnection #2056 - Fix messages in hidden channels with
clearHistoryre-appearing #2056 - Fix last message of hidden channel with
clearHistoryvisible in channel list #2056 - Message action title now supports displaying 2 lines of text instead of 1 #2082
- Fix Logger persisting config after usage, preventing changing parameters (such as LogLevel) #2081
- Fix crash in
ChannelVCwhen it's initialized using aChannelControllercreated withcreateDirectMessageChannelWithfactory #2097 - Fix
ChannelListSortingKey.unreadCountcausing database crash #2094
🔄 Changed
- JSON decoding performance is increased 3 times, parsing time reduced by %70 #2081
- EventPayload decoding errors are now more verbose #2099
StreamChatUI
✅ Added
🐞 Fixed
- Fix Logger persisting config after usage, preventing changing parameters (such as LogLevel) #2081
4.16.0
June 10, 2022
StreamChat
💥 Removed
- The
tokenProviderproperty was removed fromChatClient#2031
✅ Added
- Make it possible to call
ChatClient.connectwith atokenProvider#2031
🐞 Fixed
- Saving payloads to local database is now 50% faster. Initial launch and displaying channel list should be noticeably faster #1973
- Fix not waiting for last batch of events to be processed when connecting as another user #2016
- Fix
Date._unconditionallyBridgeFromObjectiveC(NSDate?)crash #2027 - Fix
NSHashTablecount underflow crash #2032 - Fix crash when participant hard deletes a message 2075
- Fix possible deadlock in
CurrentUserControllerfunctions being called from background threads #2074 - Fix using incorrect index path for updates #2044
🔄 Changed
- Changing the decoding of
roletochannel_roleasroleis now deprecated on the backend. This allows for custom roles defined within your V2 permissions #2028
StreamChatUI
✅ Added
- Add Support for Slow Mode #1953
- Present channel screen modally when channel list in not embedded by navigation controller #2011
- Show channel screen as right detail when channel list is embedded by split view controller #2011