Skip to content

Commit 1418013

Browse files
Merge pull request #112 from sendbird/v4.2.17
Add 4.2.17.
2 parents 87da68a + 28c26e6 commit 1418013

File tree

5 files changed

+15
-3
lines changed

5 files changed

+15
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## v4.2.17 (Jun 18, 2024)
2+
3+
### Improvements
4+
- Fixed a bug regarding receiving messages during `resetMyHistory()` processing
5+
16
## v4.2.16 (Jun 13, 2024)
27

38
### Improvements

README.md

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

5151
```yaml
5252
dependencies:
53-
sendbird_chat_sdk: ^4.2.16
53+
sendbird_chat_sdk: ^4.2.17
5454
```
5555
5656
- 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
@@ -62,7 +62,7 @@ part 'chat_notifications.dart';
6262
part 'chat_push.dart';
6363
part 'chat_user.dart';
6464

65-
const sdkVersion = '4.2.16';
65+
const sdkVersion = '4.2.17';
6666

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

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,13 @@ class CommandManager {
417417

418418
final GroupChannel? groupChannel = _eitherGroupOrFeed(channel);
419419
if (groupChannel != null) {
420+
if (groupChannel.messageOffsetTimestamp != null &&
421+
message.createdAt <= groupChannel.messageOffsetTimestamp!) {
422+
sbLog.d(StackTrace.current,
423+
'A received message before messageOffsetTimestamp is ignored.');
424+
return; // Check
425+
}
426+
420427
if (groupChannel.hiddenState ==
421428
GroupChannelHiddenState.allowAutoUnhide) {
422429
groupChannel.isHidden = false;

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.16
3+
version: 4.2.17
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)