mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
only scroll down when we are already at the bottom
This commit is contained in:
parent
b2536173a0
commit
0475274b4d
|
@ -334,10 +334,10 @@ final class ConversationVC : BaseVC, ConversationViewModelDelegate, OWSConversat
|
|||
case .insert:
|
||||
// Perform inserts before updates
|
||||
self.messagesTableView.insertRows(at: [ IndexPath(row: Int(update.newIndex), section: 0) ], with: .fade)
|
||||
shouldScrollToBottom = true
|
||||
shouldScrollToBottom = (self.scrollButton.alpha == 0)
|
||||
case .update:
|
||||
self.messagesTableView.reloadRows(at: [ IndexPath(row: Int(update.oldIndex), section: 0) ], with: .fade)
|
||||
shouldScrollToBottom = true
|
||||
shouldScrollToBottom = (self.scrollButton.alpha == 0)
|
||||
default: preconditionFailure()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue