Pārlūkot izejas kodu

Merge pull request #1233 from deltachat/fix_double_scroll

don't scroll twice after message has been delivered
cyBerta 4 gadi atpakaļ
vecāks
revīzija
400b261f86
1 mainītis faili ar 0 papildinājumiem un 5 dzēšanām
  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 {