Skip to content

Commit

Permalink
Unread count fix
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmitrevski committed Dec 7, 2023
1 parent 0e4166a commit 78d3000
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,9 @@ extension MessageAction {
onFinish: @escaping (MessageActionInfo) -> Void,
onError: @escaping (Error) -> Void
) -> MessageAction {
let channelController = chatClient.channelController(for: channel.cid)
let channelController = InjectedValues[\.utils]
.channelControllerFactory
.makeChannelController(for: channel.cid)
let action = {
channelController.markUnread(from: message.id) { result in
if case let .failure(error) = result {
Expand Down

0 comments on commit 78d3000

Please sign in to comment.