diff --git a/packages/stream_chat/CHANGELOG.md b/packages/stream_chat/CHANGELOG.md index a74b920e4..e054c4201 100644 --- a/packages/stream_chat/CHANGELOG.md +++ b/packages/stream_chat/CHANGELOG.md @@ -1,3 +1,9 @@ +## Upcoming + +✅ Added + +- Handle `event.message` in `channel.truncate` events + ## 3.5.1 🐞 Fixed diff --git a/packages/stream_chat/lib/src/client/channel.dart b/packages/stream_chat/lib/src/client/channel.dart index f2effe04b..25aaa2498 100644 --- a/packages/stream_chat/lib/src/client/channel.dart +++ b/packages/stream_chat/lib/src/client/channel.dart @@ -1612,6 +1612,9 @@ class ChannelClientState { await _channel._client.chatPersistenceClient ?.deleteMessageByCid(channel.cid); truncate(); + if (event.message != null) { + updateMessage(event.message!); + } })); }