Skip to content

Commit

Permalink
Merge pull request #92 from sendbird/v4.2.0
Browse files Browse the repository at this point in the history
Add 4.2.0.
  • Loading branch information
sf-tyler-jeong authored Jan 31, 2024
2 parents 3a2149a + f0ec888 commit 12a47ea
Show file tree
Hide file tree
Showing 119 changed files with 56,327 additions and 688 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
## v4.2.0 (Jan 31, 2024)

### Features

#### Local Caching for Android and iOS (Not supported for Web yet)
> 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.
> The local caching feature is enabled by default.
- 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`

### Improvements
- Fixed the bugs regarding FeedChannel
- Improved stability

## v4.1.2 (Dec 12, 2023)

### Features
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Before installing Sendbird Chat SDK, you need to create a Sendbird application o

```yaml
dependencies:
sendbird_chat_sdk: ^4.1.2
sendbird_chat_sdk: ^4.2.0
```
- Run `flutter pub get` command in your project directory.
Expand Down
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:sendbird_chat_sdk/sendbird_chat_sdk.dart';
void main() async {
runZonedGuarded(() async {
// Initialize the SendbirdChat SDK with your Application ID.
SendbirdChat.init(appId: 'APP-ID');
await SendbirdChat.init(appId: 'APP-ID');

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

0 comments on commit 12a47ea

Please sign in to comment.