Skip to content

Commit 12a47ea

Browse files
Merge pull request #92 from sendbird/v4.2.0
Add 4.2.0.
2 parents 3a2149a + f0ec888 commit 12a47ea

File tree

119 files changed

+56327
-688
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+56327
-688
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
## v4.2.0 (Jan 31, 2024)
2+
3+
### Features
4+
5+
#### Local Caching for Android and iOS (Not supported for Web yet)
6+
> Local caching enables Sendbird Chat SDK for Flutter to cache and retrieve group channel and message data locally. Its benefits include reducing refresh time and allowing a client app to create a channel list or a chat view that can work online as well as offline.
7+
> The local caching feature is enabled by default.
8+
9+
- Added `useCollectionCaching` in `SendbirdChatOptions` (The default value is `true`)
10+
- Added `getCachedDataSize()`, `clearCachedData()` and `clearCachedMessages()` in `SendbirdChat`
11+
- Added `getFailedMessages()`, `removeFailedMessages()` and `removeAllFailedMessages()` in `MessageCollection`
12+
- Added `markAsRead() in `BaseMessageCollection`
13+
14+
### Improvements
15+
- Fixed the bugs regarding FeedChannel
16+
- Improved stability
17+
118
## v4.1.2 (Dec 12, 2023)
219

320
### Features

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.1.2
51+
sendbird_chat_sdk: ^4.2.0
5252
```
5353
5454
- Run `flutter pub get` command in your project directory.

example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'package:sendbird_chat_sdk/sendbird_chat_sdk.dart';
55
void main() async {
66
runZonedGuarded(() async {
77
// Initialize the SendbirdChat SDK with your Application ID.
8-
SendbirdChat.init(appId: 'APP-ID');
8+
await SendbirdChat.init(appId: 'APP-ID');
99

1010
// Connect to the Sendbird server with a User ID.
1111
await SendbirdChat.connect('USER-ID');

0 commit comments

Comments
 (0)