|
|
@ -334,12 +334,10 @@ final class ConversationVC : BaseVC, ConversationViewModelDelegate, OWSConversat
|
|
|
|
case .insert:
|
|
|
|
case .insert:
|
|
|
|
// Perform inserts before updates
|
|
|
|
// Perform inserts before updates
|
|
|
|
self.messagesTableView.insertRows(at: [ IndexPath(row: Int(update.newIndex), section: 0) ], with: .fade)
|
|
|
|
self.messagesTableView.insertRows(at: [ IndexPath(row: Int(update.newIndex), section: 0) ], with: .fade)
|
|
|
|
let viewItem = update.viewItem
|
|
|
|
shouldScrollToBottom = true
|
|
|
|
if viewItem?.interaction is TSOutgoingMessage {
|
|
|
|
|
|
|
|
shouldScrollToBottom = true
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
case .update:
|
|
|
|
case .update:
|
|
|
|
self.messagesTableView.reloadRows(at: [ IndexPath(row: Int(update.oldIndex), section: 0) ], with: .fade)
|
|
|
|
self.messagesTableView.reloadRows(at: [ IndexPath(row: Int(update.oldIndex), section: 0) ], with: .fade)
|
|
|
|
|
|
|
|
shouldScrollToBottom = true
|
|
|
|
default: preconditionFailure()
|
|
|
|
default: preconditionFailure()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|