Fix glitch and add FIXME

pull/479/head
Niels Andriesse 4 years ago
parent c5c75a306e
commit e6949a5ae8

@ -368,7 +368,8 @@ final class ConversationVC : BaseVC, ConversationViewModelDelegate, OWSConversat
shouldScrollToBottom = self.isCloseToBottom shouldScrollToBottom = self.isCloseToBottom
} }
case .update: 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 shouldScrollToBottom = self.isCloseToBottom
default: preconditionFailure() default: preconditionFailure()
} }

Loading…
Cancel
Save