From 93353b9634babaa5fc2359794cb702c2340d70b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sierpi=C5=84ski?= <33436839+sierpinskid@users.noreply.github.com> Date: Wed, 3 Jan 2024 12:53:56 +0100 Subject: [PATCH] Upgrade SDK to 4.3 --- Assets/Plugins/StreamChat/Changelog.txt | 20 +++++++++++++++++++ .../StreamChatLowLevelClient.cs | 2 +- ProjectSettings/ProjectSettings.asset | 2 +- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/Assets/Plugins/StreamChat/Changelog.txt b/Assets/Plugins/StreamChat/Changelog.txt index fb1b7212..2ad92af7 100644 --- a/Assets/Plugins/StreamChat/Changelog.txt +++ b/Assets/Plugins/StreamChat/Changelog.txt @@ -1,3 +1,23 @@ +v4.3.0: +Fixes: +* Fixed state update after channel.truncated event with a past date +* Added potential fix for a crash on Android with IL2CPP + +Improvements: +* Improved reconnection logic to monitor Unity's [Network Reachability](https://docs.unity3d.com/ScriptReference/NetworkReachability.html) for faster reaction to when the network is available again +* Reduced the overhead and potential heating issues on mobile devices by optimizing the background tasks that handle WebSocket connection +* Updated DTOs to the latest OpenAPI spec +* Implemented invites -> [Invites Docs](https://getstream.io/chat/docs/unity/channel_invites/?language=unity) +* Added optional hide history & message parameters to IStreamChannel.AddMembersAsync +* Implemented IStreamChannel.UpdateOverwriteAsync -> [Channel Overwrite Update Docs](https://getstream.io/chat/docs/unity/channel_update/?language=unity&q=update#full-update-(overwrite)) +* Added channel freezing & unfreezing -> [Channel Freeze Docs](https://getstream.io/chat/docs/unity/disabling_channels/?language=unity#freeze-a-channel) + +Sample Project: +* Fixes: + * Fixed excessive TryLoadPreviousMessagesAsync calling - this could lead to performance issues after loading older messages +* Improvements + * Added invite mechanics + v4.2.0: Deprecated (will be removed in a future release): * IStreamChatClient.QueryChannelsAsync overload with IDictionary filters parameter. Please use the other overload with IEnumerable filters parameter. diff --git a/Assets/Plugins/StreamChat/Core/LowLevelClient/StreamChatLowLevelClient.cs b/Assets/Plugins/StreamChat/Core/LowLevelClient/StreamChatLowLevelClient.cs index b16a8722..6d7ebb25 100644 --- a/Assets/Plugins/StreamChat/Core/LowLevelClient/StreamChatLowLevelClient.cs +++ b/Assets/Plugins/StreamChat/Core/LowLevelClient/StreamChatLowLevelClient.cs @@ -196,7 +196,7 @@ private set /// /// SDK Version number /// - public static readonly Version SDKVersion = new Version(4, 2, 0); + public static readonly Version SDKVersion = new Version(4, 3, 0); /// /// Use this method to create the main client instance or use StreamChatClient constructor to create a client instance with custom dependencies diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index 624e5a41..392204fc 100644 --- a/ProjectSettings/ProjectSettings.asset +++ b/ProjectSettings/ProjectSettings.asset @@ -134,7 +134,7 @@ PlayerSettings: 16:10: 1 16:9: 1 Others: 1 - bundleVersion: 4.2.0 + bundleVersion: 4.3.0 preloadedAssets: [] metroInputSource: 0 wsaTransparentSwapchain: 0