diff --git a/CHANGELOG.md b/CHANGELOG.md index 66c5f32..ff90217 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## v4.2.16 (Jun 13, 2024) + +### Improvements +- Fixed a bug regarding `await` in `resetMyHistory()` in `GroupChannel` + ## v4.2.15 (Jun 5, 2024) ### Improvements diff --git a/README.md b/README.md index 1a4a1ad..26e5773 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Before installing Sendbird Chat SDK, you need to create a Sendbird application o ```yaml dependencies: - sendbird_chat_sdk: ^4.2.15 + sendbird_chat_sdk: ^4.2.16 ``` - 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 6d2ce57..8dca7c6 100644 --- a/lib/src/internal/main/chat/chat.dart +++ b/lib/src/internal/main/chat/chat.dart @@ -62,7 +62,7 @@ part 'chat_notifications.dart'; part 'chat_push.dart'; part 'chat_user.dart'; -const sdkVersion = '4.2.15'; +const sdkVersion = '4.2.16'; // Internal implementation for main class. Do not directly access this class. class Chat with WidgetsBindingObserver { diff --git a/lib/src/public/main/collection/group_channel_message_collection/base_message_collection.dart b/lib/src/public/main/collection/group_channel_message_collection/base_message_collection.dart index ba79824..0ebe71f 100644 --- a/lib/src/public/main/collection/group_channel_message_collection/base_message_collection.dart +++ b/lib/src/public/main/collection/group_channel_message_collection/base_message_collection.dart @@ -941,7 +941,7 @@ abstract class BaseMessageCollection { .map((message) => message.rootId) .toList(); - _chat.collectionManager.sendEventsToMessageCollection( + await _chat.collectionManager.sendEventsToMessageCollection( messageCollection: this, baseChannel: baseChannel, eventSource: CollectionEventSource.eventMessageDeleted, diff --git a/pubspec.yaml b/pubspec.yaml index d1072f0..2a6c2d9 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.15 +version: 4.2.16 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