From 25b9b0604434211b0a745633356c98137666202f Mon Sep 17 00:00:00 2001 From: ryanzhao Date: Tue, 27 Jul 2021 14:45:23 +1000 Subject: [PATCH] fix unread count not disappear after scrolling to bottom --- Session/Conversations/ConversationVC+Interaction.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Session/Conversations/ConversationVC+Interaction.swift b/Session/Conversations/ConversationVC+Interaction.swift index 61ac11d40..89ae4dc4e 100644 --- a/Session/Conversations/ConversationVC+Interaction.swift +++ b/Session/Conversations/ConversationVC+Interaction.swift @@ -22,6 +22,7 @@ extension ConversationVC : InputViewDelegate, MessageCellDelegate, ContextMenuAc // so the result may be inaccurate before all the cells are loaded. Use this // to scroll to the last row instead. let indexPath = IndexPath(row: viewItems.count - 1, section: 0) + unreadViewItems.removeAll() messagesTableView.scrollToRow(at: indexPath, at: .top, animated: true) }