Skip to content

Releases: GetStream/stream-chat-unity

v5.2

29 Apr 20:26
53b9a84
Compare
Choose a tag to compare

Features:

  • Handle message shadowing. The IStreamChannel.Messages and IStreamChannel.PinnedMessages will have shadowed message removed. A moderation policy can apply shadowing. Such a message will be visible to the author but invisible to other users.

v5.1.1

27 Feb 11:38
d4d8cf4
Compare
Choose a tag to compare

Fixes:

  • Fix failing channel response deserialization for channels with dynamic partition enabled, caused by the PartitionTtl field in ChannelConfigInternalDTO and ChannelConfigWithInfoInternalDTO not being a string.

Features:

  • Expose PartitionSize and PartitionTtl properties in IStreamChannel.Config

v5.1.0

07 Feb 16:27
f8a8525
Compare
Choose a tag to compare

Deprecated (will be removed in a future major release):

  • IStreamChatClient.UpsertUsers is renamed to IStreamChatClient.UpsertUsersAsync. Please use the UpsertUsersAsync.

Fixed:

  • Fixed exception being thrown when the user.updated event is received. This resulted in InvalidOperationException: Failed to find id getter for: StreamChat.Core.InternalDTO.Models.UserEventPayloadInternalDTO exception.

v5.0.0

04 Oct 14:49
302144f
Compare
Choose a tag to compare

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 via StreamChatClient.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

23 Aug 11:36
a8da04c
Compare
Choose a tag to compare

Fixes:

  • Fix compiler errors after switching to the WebGL platform (#179)

v4.8.0

07 Aug 12:35
59357eb
Compare
Choose a tag to compare

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

27 Jun 12:33
f7c138a
Compare
Choose a tag to compare

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

11 Jun 16:49
f24bae1
Compare
Choose a tag to compare

Improvements:

  • Added client events that are fired when the local user is added to a new channel -> IStreamChatClient.AddedToChannelAsMember or removed from a channel IStreamChatClient.RemovedFromChannelAsMember - These two events fire only for channels that are not tracked locally. For tracked channels, the IStreamChannel.MemberAdded & IStreamChannel.MemberRemoved should be used (#146)

v.4.5.0

06 Jun 09:08
23204df
Compare
Choose a tag to compare

Fixes:

  • Fixed channel member role deserialization breaking (#143)

Improvements:

  • Reduced memory allocations (#144)

Code Samples:

  • Added code examples for the user presence (online status) (#142)

v4.4.0

27 Mar 10:44
6604878
Compare
Choose a tag to compare

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) + changed NativeWebSocket to be only included in a WebGL build (#138)

Sample Project:

  • Fixes:
    • Fixed Json deserialization error due to code being stripped by the IL2CPP (#137)