diff --git a/CHANGELOG.md b/CHANGELOG.md index a7b1f5a..b79604b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## v4.2.1 (Fed 5, 2024) + +### Improvements +- Fixed the bug where `getCachedMetaData()` in `BaseChannel` is not being updated when deleting metadata. + ## v4.2.0 (Jan 31, 2024) ### Features @@ -9,7 +14,7 @@ - Added `useCollectionCaching` in `SendbirdChatOptions` (The default value is `true`) - Added `getCachedDataSize()`, `clearCachedData()` and `clearCachedMessages()` in `SendbirdChat` - Added `getFailedMessages()`, `removeFailedMessages()` and `removeAllFailedMessages()` in `MessageCollection` -- Added `markAsRead() in `BaseMessageCollection` +- Added `markAsRead()` in `BaseMessageCollection` ### Improvements - Fixed the bugs regarding FeedChannel diff --git a/README.md b/README.md index 4fac161..7fcb4be 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ Before installing Sendbird Chat SDK, you need to create a Sendbird application o ```yaml dependencies: - sendbird_chat_sdk: ^4.2.0 + sendbird_chat_sdk: ^4.2.1 ``` - Run `flutter pub get` command in your project directory. diff --git a/lib/src/internal/main/chat/chat.dart b/lib/src/internal/main/chat/chat.dart index cad3bbc..295e4a3 100644 --- a/lib/src/internal/main/chat/chat.dart +++ b/lib/src/internal/main/chat/chat.dart @@ -60,7 +60,7 @@ part 'chat_notifications.dart'; part 'chat_push.dart'; part 'chat_user.dart'; -const sdkVersion = '4.2.0'; +const sdkVersion = '4.2.1'; // Internal implementation for main class. Do not directly access this class. class Chat with WidgetsBindingObserver { diff --git a/lib/src/internal/main/chat_manager/command_manager.dart b/lib/src/internal/main/chat_manager/command_manager.dart index 3e957ba..0c9dded 100644 --- a/lib/src/internal/main/chat_manager/command_manager.dart +++ b/lib/src/internal/main/chat_manager/command_manager.dart @@ -1157,7 +1157,7 @@ class CommandManager { ); final cachedMetaData = _chat.channelCache - .find>(channelKey: event.channelUrl) ?? + .find(channelKey: event.channelUrl) ?? MetaDataCache( channelType: event.channelType, channelUrl: event.channelUrl, diff --git a/pubspec.yaml b/pubspec.yaml index 4886a29..5ef911f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: sendbird_chat_sdk description: With Sendbird Chat for Flutter, you can easily build an in-app chat with all the essential messaging features. -version: 4.2.0 +version: 4.2.1 homepage: https://sendbird.com repository: https://github.com/sendbird/sendbird-chat-sdk-flutter documentation: https://sendbird.com/docs/chat/sdk/v4/flutter/getting-started/send-first-message