Skip to content

Commit 816076e

Browse files
authored
Channel was sometimes not marked as read when tapping the x on the unread message pill in the message list (#610)
1 parent 64dc5fa commit 816076e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66
### 🐞 Fixed
77
- Rare crash when accessing frame of the view [#607](https://github.com/GetStream/stream-chat-swiftui/pull/607)
88
- `ChatChannelListView` navigation did not trigger when using a custom container and its body reloaded [#609](https://github.com/GetStream/stream-chat-swiftui/pull/609)
9+
- Channel was sometimes not marked as read when tapping the x on the unread message pill in the message list [#610](https://github.com/GetStream/stream-chat-swiftui/pull/610)
910

1011
# [4.63.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.63.0)
1112
_September 12, 2024_

Sources/StreamChatSwiftUI/ChatChannel/MessageList/MessageListView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ public struct MessageListView<Factory: ViewFactory>: View, KeyboardReadable {
301301
_ = onJumpToMessage?(firstUnreadMessageId ?? .unknownMessageId)
302302
},
303303
onClose: {
304-
firstUnreadMessageId = nil
304+
chatClient.channelController(for: channel.cid).markRead()
305305
unreadButtonDismissed = true
306306
}
307307
) : nil

0 commit comments

Comments
 (0)