Releases: GetStream/stream-chat-swift
Releases · GetStream/stream-chat-swift
4.18.0
July 05, 2022
StreamChat
✅ Added
- Added missing
ChannelListFilterScope
andMemberListFilterScope
filter keys #2119
🔄 Changed
- Improved performance when saving big payloads (by 50% in some edge cases)#2113
- Chat SDK now leverages
chat.stream-io-api.com
endpoint 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
parentMessageId
parameter for typing events #2080- Adds support for multi bundle push notifications #2101
🐞 Fixed
- Fix hidden channels not appearing on relaunch #2056
- Fix
channel.hidden
event failing to decode on launch/reconnection #2056 - Fix messages in hidden channels with
clearHistory
re-appearing #2056 - Fix last message of hidden channel with
clearHistory
visible 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
ChannelVC
when it's initialized using aChannelController
created withcreateDirectMessageChannelWith
factory #2097 - Fix
ChannelListSortingKey.unreadCount
causing 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
tokenProvider
property was removed fromChatClient
#2031
✅ Added
- Make it possible to call
ChatClient.connect
with 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
NSHashTable
count underflow crash #2032 - Fix crash when participant hard deletes a message 2075
- Fix possible deadlock in
CurrentUserController
functions being called from background threads #2074 - Fix using incorrect index path for updates #2044
🔄 Changed
- Changing the decoding of
role
tochannel_role
asrole
is 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
🐞 Fixed
4.15.1
June 01, 2022
This release does not contain any code changes.
🔄 Changed
- Provides new
SPI
config. - Adds swift docc plugin to package dependencies.
4.15.0
May 17, 2022
StreamChat
✅ Added
- Expose
readBy/readByCount
onChatMessage
containing info about users who has seen this message. These fields are populated only for messages sent by the current user #1887 - Expose preview message on
ChatChannel
#1935
🐞 Fixed
- Fix unread messages count bumping logic #1978
- respect muted channels
- respect muted users
- decrement when message is hard deleted
- Fix paginated channels in channel list were left without messages when sync is executed #1985
- Fix
deletedMessagesVisibility == .alwaysVisible
shows deleted ephemeral messages in message list #1991
🔄 Changed
- Rename
mentionedMessages
tomentions
inChannelUnreadCount
#1978 - Changes
.team
filterFilterKey
to acceptnil
as a parameter #1968
StreamChatUI
🔄 Changed
- Deprecate
ChatMessage.isOnlyVisibleForCurrentUser
as it does not account deleted messages visability setting #1948 - Rename components related to message footnote content in
ChatMessageContentView
#1948
✅ Added
- Show delivery status indicator for messages sent by the current user #1887
- Show delivery status indicator for messages sent by the current user in channel preview #1935
- Add support for custom reactions sorting #1944
- Add
nonEmpty
filter for channel list query #1960
🐞 Fixed
- Fix
onlyVisibleForYouIndicator
not being shown for ephemeral messages #1948 - Fix message popup UI glitch for bigger messages and iPad/Landscape #1975
- Fix footnote being hidden for the message followed by
ephemeral
message #1956 - Fix footnote being hidden for the message followed by
system
message #1956
4.14.0
April 26, 2022
StreamChat
✅ Added
quotesEnabled
property is added to theChannelConfig
#1891
🔄 Changed
- Assertions are no longer thrown by default. Check
StreamRuntimeCheck
to enable them #1885 - Local Storage is enabled by default. You can read more here #1890
- Mark all read has been relocated to
CurrentUserController
to have parity with other platforms #1927 - New
CurrentUserController.addDevice(_pushDevice:)
replacesCurrentUserController.addDevice(token:pushProvider:)
#1934- How to use the new addDevice API:
currentUserController.addDevice(.apn(token: apnDeviceToken))
- How to use the new addDevice API:
🐞 Fixed
- Fix support for multiple active channel lists at the same time #1879
- Fix channels linked to the channel list not being watched #1924
- Fix connection recovery flow being triggered after the first connection #1925
- Fix connection recovery flow not being cancelled on disconnect #1925
- Fix cooldown being applied to /sync endpoint in connection recovery flow #1925
- Fix active components not being reset when another user is connected #1925
- Fix unusable firebase push provider #1934
- Fix DB errors happening when logging in after a logout / user switch #1926
StreamChatUI
💥 Removed
- The
toVCSnapshot
,fromVCSnapshot
andcontainerTransitionImageView
properties were removedZoomAnimator
because they were the root cause of animation issues when presenting the popup actions #1899
🔄 Changed
- The time interval between 2 messages so they are grouped in the UI is changed from
30 sec
to60 sec
#1893
✅ Added
- Quote message action visibility can be controlled from the dashboard #1891
🐞 Fixed
- Fix full screen live photos weird flicker when presented / dismissed to / from full screen #1899
- Timestamp not being shown for the message when the next message is error #1893
- Another user's avatar not being shown for deleted message last in a group #1893
- Fix audio files not rendering previews #1907
- Fix message sender name is not shown in channel with > 2 members if member identifiers were passed on channel creation #1931
- Fix incorrectly called viewWillAppear inside viewWillDissapear #1938
4.13.1
4.13.0
March 29, 2022
StreamChat
✅ Added
- Introduce message translations. See docs for more info #1867
- Add support for multiple push providers #1864
🐞 Fixed
- Fix payload for reaction when using
enforce_unique
#1861 - Use IndexPath's item instead of row for macOS compatibility #1859
- Fix mime-type for file attachments #1873
- Properly decode
removed_from_channel
event when channel is incomplete #1881
StreamChatUI
⚠️ Changed
AttachmentsPreviewVC
contains significant deprecations #1877
✅ Added
- Add Mixed Attachments UI Support #1877
🐞 Fixed
- Resolve attachment type when importing file from file picker #1873
- Fix long file names overlapped by the close button #1880
- Fix long file names being truncated at the end instead of the middle #1880
- Fix commands without arguments cannot be sent without text #1869
- Fix pasting long text into composer won't update input height #1875
4.12.0
March 16, 2022
StreamChat
✅ Added
- Add Offline Support (Connection & events recovery, and offline actions queuing) #1831
- Add
MessageSearchSortingKey.createdAt
andupdatedAt
for sorting options #1824
🐞 Fixed
- Fix
ChatMessageSearchController
not respectingsort
param #1824 - Fix
ChatMessageSearchController
not removing old search results #1824 - Fix
ChatMessageSearchController
making empty searches #1824
StreamChatUI
🔄 Changed
⚠️ Change default message deleted visibility to.alwaysVisible
#1851- Note: This change is required to be align with the other SDK Platforms. If you still want the older behaviour, you should set the
ChatClientConfig.deletedMessagesVisibility
to.visibleForCurrentUser
.
- Note: This change is required to be align with the other SDK Platforms. If you still want the older behaviour, you should set the
✅ Added
- Make it possible to customize the message view only in the popup actions #1844
🐞 Fixed
4.11.0
March 01, 2022
✅ Added
- Add Support for Message List Data Source Diffing (Experimental) #1770
- Show Camera option on the ComposerVC #1798
ChannelController
'struncateChannel
function now allows you to specifysystemMessage
,hardDelete
,skipPush
properties #1799- Added
truncatedAt
property toChatChannel
- Added increased logging for CoreData crashes caused by lingering models from previous sessions #1814