Fix glitch and add FIXME

This commit is contained in:
Niels Andriesse 2021-08-03 14:28:46 +10:00
parent c5c75a306e
commit e6949a5ae8
1 changed files with 2 additions and 1 deletions

View File

@ -368,7 +368,8 @@ final class ConversationVC : BaseVC, ConversationViewModelDelegate, OWSConversat
shouldScrollToBottom = self.isCloseToBottom
}
case .update:
self.messagesTableView.reloadRows(at: [ IndexPath(row: Int(update.oldIndex), section: 0) ], with: .fade)
// FIXME: This is called many times when a message is inserted, leading to bad performance
self.messagesTableView.reloadRows(at: [ IndexPath(row: Int(update.oldIndex), section: 0) ], with: .none)
shouldScrollToBottom = self.isCloseToBottom
default: preconditionFailure()
}