From f2a33d4f6c7d469ae188e9bb71da7a8a4a7c6410 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sierpi=C5=84ski?= Date: Thu, 20 Apr 2023 16:42:25 +0200 Subject: [PATCH] Upgrade project to 4.2.0 (#121) --- Assets/Plugins/StreamChat/Changelog.txt | 52 +++++++++++++++++++ .../StreamChatLowLevelClient.cs | 2 +- ProjectSettings/ProjectSettings.asset | 2 +- 3 files changed, 54 insertions(+), 2 deletions(-) diff --git a/Assets/Plugins/StreamChat/Changelog.txt b/Assets/Plugins/StreamChat/Changelog.txt index 97914028..fb1b7212 100644 --- a/Assets/Plugins/StreamChat/Changelog.txt +++ b/Assets/Plugins/StreamChat/Changelog.txt @@ -1,3 +1,55 @@ +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. + +Fixes: +* Change connection update monitor to not throw an error if the client is disposed or closing +* Fix StreamChannel members list not always being updated +* Fix IStreamChatClient.QueryChannelsAsync pagination +* Fix emoji sprites sometimes having missing references when importing SDK to a fresh project +* Fix reaction.new clearing the OwnReactions - this field is by design for performance reasons +* Remove this sample "mini" project as it is not finished and not helpful in its current form +* Fix IStreamUser.MarkVisibleAsync & IStreamUser.MarkInvisibleAsync +* Fix PresenceChanged to be always called when Online status changes +* Added Rest Call Log if case deserialization of the stream API error failed + +Improvements: +* Implement IStreamChatClient.QueryUsersAsync pagination and sorting +* Add simple starting prefab + remove config asset +* Implement IStreamChannel.MembersChanged event to trigger on add, remove, update + add integration tests +* Implement syntax based users query filters + add integration tests & code samples +* Improve XML comments +* Change IStreamChatClient.QueryUsersAsync filters parameter to be optional +* Add IStreamChannel helper method JoinAsMemberAsync and LeaveAsMemberChannelAsync +* Remove default allocations for the user upsert DTOs +* Add code samples for user and channel mute/unmute +* Refactor dependencies so they can be easier replaced with C# Console or .NET MAUI projects + +Code Samples: +* Add code samples for channel query filters +* Update code examples using IStreamChatClient.QueryUsersAsync to use the new syntax-based filters + +Sample Project: +* Fixes: + * Fix null ref when closing the project + * Fix images not showing at the start + * fix loading of previous messages called when the message list is empty + * Fix input height + * Change missing credentials error not to be thrown per frame + * Fix online status sprites sometimes breaking after project import + +* Improvements: + * UI/UX improvements + * Change ChannelView to show an icon if possible or a letter symbol + * Implement members list with an online status + * Implement local user header with online and invisibility status + * Support mobile touch for popup (show on touch and hide when touching outside) + * Change default mobile screen orientation + +Tests: +* Disable update monitor when tests are enabled +* Improve integration tests stability + v4.1.0: Fixes: * Fix "no await in async method" warning diff --git a/Assets/Plugins/StreamChat/Core/LowLevelClient/StreamChatLowLevelClient.cs b/Assets/Plugins/StreamChat/Core/LowLevelClient/StreamChatLowLevelClient.cs index 0a99c6b8..39d766e5 100644 --- a/Assets/Plugins/StreamChat/Core/LowLevelClient/StreamChatLowLevelClient.cs +++ b/Assets/Plugins/StreamChat/Core/LowLevelClient/StreamChatLowLevelClient.cs @@ -195,7 +195,7 @@ private set /// /// SDK Version number /// - public static readonly Version SDKVersion = new Version(4, 1, 0); + public static readonly Version SDKVersion = new Version(4, 2, 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 2ee7bed3..624e5a41 100644 --- a/ProjectSettings/ProjectSettings.asset +++ b/ProjectSettings/ProjectSettings.asset @@ -134,7 +134,7 @@ PlayerSettings: 16:10: 1 16:9: 1 Others: 1 - bundleVersion: 4.1.0 + bundleVersion: 4.2.0 preloadedAssets: [] metroInputSource: 0 wsaTransparentSwapchain: 0