Skip to content

Commit fdfe7fa

Browse files
Merge pull request #94 from sendbird/v4.2.1
Add 4.2.1.
2 parents 0b854cd + 0e49875 commit fdfe7fa

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## v4.2.1 (Fed 5, 2024)
2+
3+
### Improvements
4+
- Fixed the bug where `getCachedMetaData()` in `BaseChannel` is not being updated when deleting metadata.
5+
16
## v4.2.0 (Jan 31, 2024)
27

38
### Features
@@ -9,7 +14,7 @@
914
- Added `useCollectionCaching` in `SendbirdChatOptions` (The default value is `true`)
1015
- Added `getCachedDataSize()`, `clearCachedData()` and `clearCachedMessages()` in `SendbirdChat`
1116
- Added `getFailedMessages()`, `removeFailedMessages()` and `removeAllFailedMessages()` in `MessageCollection`
12-
- Added `markAsRead() in `BaseMessageCollection`
17+
- Added `markAsRead()` in `BaseMessageCollection`
1318

1419
### Improvements
1520
- Fixed the bugs regarding FeedChannel

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Before installing Sendbird Chat SDK, you need to create a Sendbird application o
4848

4949
```yaml
5050
dependencies:
51-
sendbird_chat_sdk: ^4.2.0
51+
sendbird_chat_sdk: ^4.2.1
5252
```
5353
5454
- Run `flutter pub get` command in your project directory.

lib/src/internal/main/chat/chat.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ part 'chat_notifications.dart';
6060
part 'chat_push.dart';
6161
part 'chat_user.dart';
6262

63-
const sdkVersion = '4.2.0';
63+
const sdkVersion = '4.2.1';
6464

6565
// Internal implementation for main class. Do not directly access this class.
6666
class Chat with WidgetsBindingObserver {

lib/src/internal/main/chat_manager/command_manager.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,7 @@ class CommandManager {
11571157
);
11581158

11591159
final cachedMetaData = _chat.channelCache
1160-
.find<MetaDataCache<String>>(channelKey: event.channelUrl) ??
1160+
.find<MetaDataCache>(channelKey: event.channelUrl) ??
11611161
MetaDataCache(
11621162
channelType: event.channelType,
11631163
channelUrl: event.channelUrl,

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: sendbird_chat_sdk
22
description: With Sendbird Chat for Flutter, you can easily build an in-app chat with all the essential messaging features.
3-
version: 4.2.0
3+
version: 4.2.1
44
homepage: https://sendbird.com
55
repository: https://github.com/sendbird/sendbird-chat-sdk-flutter
66
documentation: https://sendbird.com/docs/chat/sdk/v4/flutter/getting-started/send-first-message

0 commit comments

Comments
 (0)