Browse Source

don't scroll twice after message has been delivered

cyberta 4 years ago
parent
commit
e35940dcad
1 changed files with 0 additions and 5 deletions
  1. 0 5
      deltachat-ios/Chat/ChatViewController.swift

+ 0 - 5
deltachat-ios/Chat/ChatViewController.swift

@@ -1112,12 +1112,7 @@ class ChatViewController: UITableViewController {
 
     func updateMessage(_ messageId: Int) {
         if messageIds.firstIndex(where: { $0 == messageId }) != nil {
-            markSeenMessage(id: messageId)
-            let wasLastSectionVisible = self.isLastRowVisible()
             reloadData()
-            if wasLastSectionVisible {
-                self.scrollToBottom(animated: true)
-            }
         } else {
             let msg = DcMsg(id: messageId)
             if msg.chatId == chatId {