Releases: GetStream/stream-chat-unity
Releases · GetStream/stream-chat-unity
v5.2
v5.1.1
Fixes:
- Fix failing channel response deserialization for channels with dynamic partition enabled, caused by the
PartitionTtl
field inChannelConfigInternalDTO
and ChannelConfigWithInfoInternalDTO not being a string.
Features:
- Expose
PartitionSize
andPartitionTtl
properties inIStreamChannel.Config
v5.1.0
Deprecated (will be removed in a future major release):
IStreamChatClient.UpsertUsers
is renamed toIStreamChatClient.UpsertUsersAsync
. Please use theUpsertUsersAsync
.
Fixed:
- Fixed exception being thrown when the
user.updated
event is received. This resulted inInvalidOperationException: Failed to find id getter for: StreamChat.Core.InternalDTO.Models.UserEventPayloadInternalDTO
exception.
v5.0.0
Check out the Migration Guide to 5.x for guidance on adjusting your project.
Added:
StreamChatClient.SetAuthorizationCredentials
- allows setting the authorization credentials without connecting a user to the Stream Chat Service. This can be used in scenarios where you want to fetch unread counts viaStreamChatClient.GetLatestUnreadCountsAsync
in "offline" mode, without establishing a persistent connection, which would contribute towards CCU.
Deprecated (will be removed in a future major release):
MessageRequest
deprecated fields:Html
,PinnedBy
,User
,UserId
StreamUpdateMessageRequest
deprecated field:PinnedBy
StreamSendMessageRequest
deprecated field:PinnedBy
StreamMessageRequest
deprecated field:PinnedBy
MessageRequest
deprecated field:Html
Moved:
StreamChat.Core.Requests.CreateDeviceRequest
->StreamChat.Core.LowLevelClient.Requests.CreateDeviceRequest
StreamChat.Core.Responses.ListDevicesResponse
->StreamChat.Core.LowLevelClient.Responses.ListDevicesResponse
Improvements:
- Improved
StreamChannel.MemberCount
updates from additional API events. - Replaced enums with structs:
StreamChat.Core.Models.StreamMessageType
StreamChat.Core.Responses.StreamImageCropType
StreamChat.Core.Responses.StreamImageResizeType
StreamChat.Core.InternalDTO.Models.AutomodBehaviourType
StreamChat.Core.InternalDTO.Models.AutomodType
StreamChat.Core.InternalDTO.Models.BlockListOptionsBehavior
StreamChat.Core.InternalDTO.Models.ImageCropType
StreamChat.Core.InternalDTO.Models.ImageResizeType
StreamChat.Core.InternalDTO.Models.MessageType
StreamChat.Core.InternalDTO.Models.PushProviderType
StreamChat.Core.InternalDTO.Requests.CreateCallRequestType
StreamChat.Core.InternalDTO.Requests.CreatePollRequestVotingVisibility
StreamChat.Core.InternalDTO.Requests.MessageRequestType
StreamChat.Core.InternalDTO.Requests.TranslateMessageRequestLanguage
StreamChat.Core.InternalDTO.Requests.UpdatePollRequestVotingVisibility
StreamChat.Core.InternalDTO.Responses.ChannelMemberResponseRole
v4.9.0
v4.8.0
Features:
- Add method to get the current state of the unread counts with
IStreamChatClient.GetLatestUnreadCountsAsync()
-> this method also works when the client is disconnected. The unread counts state provides a detailed information about unread messages in each channel and thread.
v4.7.0
Fixes:
- Fix the
IStreamChannel
instance provided by an event not triggering its own events (the channel was not being watched if it was only returned via event) (#149) - Fix client events:
IStreamChatClient.AddedToChannelAsMember
,IStreamChatClient.RemovedFromChannelAsMember
,IStreamChatClient.ChannelInviteReceived
,IStreamChatClient.ChannelInviteAccepted
,IStreamChatClient.ChannelInviteRejected
not being executed on the main thread (#151) - Fix the client not reconnecting immediately after losing network connection when the network is available again (#153)
- Fix internal WebSocket client sometimes getting stuck in the Connecting state on Android when the network was not available (#154)
Features:
- Add state recovery after the disconnected period - once the client reconnects, it will fetch any missed events (like new messages, etc.) from the server and reconstruct the missed state (#152)
v4.6.0
Improvements:
- Added client events that are fired when the local user is added to a new channel ->
IStreamChatClient.AddedToChannelAsMember
or removed from a channelIStreamChatClient.RemovedFromChannelAsMember
- These two events fire only for channels that are not tracked locally. For tracked channels, theIStreamChannel.MemberAdded
&IStreamChannel.MemberRemoved
should be used (#146)
v.4.5.0
v4.4.0
Fixes:
- Fixed
Unity 2019.4
compiler errors (due to older C# syntax) (#137) - Fixed unnecessary DLLs being added to the Windows build. Test framework dependencies (
Tasks.Extensions
,CompilerServices.Unsafe
) + changedNativeWebSocket
to be only included in aWebGL
build (#138)
Sample Project:
- Fixes:
- Fixed Json deserialization error due to code being stripped by the IL2CPP (#137)