This commit is contained in:
ryanzhao 2021-07-20 11:42:22 +10:00
parent 4fad67484f
commit fcca7f3076
1 changed files with 0 additions and 1 deletions

View File

@ -224,7 +224,6 @@ final class ConversationVC : BaseVC, ConversationViewModelDelegate, OWSConversat
}
DispatchQueue.main.async {
let unreadIndicatorIndex = self.viewModel.viewState.unreadIndicatorIndex?.intValue ?? (self.viewItems.count - self.unreadViewItems.count)
print("Ryan Test: \(unreadIndicatorIndex)")
if unreadCount > 0, let viewItem = self.viewItems[ifValid: unreadIndicatorIndex], let interactionID = viewItem.interaction.uniqueId {
self.scrollToInteraction(with: interactionID, position: .top, isAnimated: false)
self.unreadCountView.alpha = self.scrollButton.alpha