From e6949a5ae823212d9e12e6d8809d28151dfd411d Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Tue, 3 Aug 2021 14:28:46 +1000 Subject: [PATCH] Fix glitch and add FIXME --- Session/Conversations/ConversationVC.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Session/Conversations/ConversationVC.swift b/Session/Conversations/ConversationVC.swift index 19a5fd4ed..6d8b152ed 100644 --- a/Session/Conversations/ConversationVC.swift +++ b/Session/Conversations/ConversationVC.swift @@ -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() }