Procházet zdrojové kódy

fix empty chat screen after orientation change to landscape

cyberta před 3 roky
rodič
revize
dd17eb146f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      deltachat-ios/Chat/ChatViewController.swift

+ 1 - 1
deltachat-ios/Chat/ChatViewController.swift

@@ -1656,7 +1656,7 @@ extension ChatViewController: InputBarAccessoryViewDelegate {
                                                    bottom: size.height + messageInputBar.keyboardHeight,
                                                    right: 0)
         if isLastRowVisible() && !tableView.isDragging && !tableView.isDecelerating  && highlightedMsg == nil && !ignoreInputBarChange {
-            self.tableView.setContentOffset(CGPoint(x: 0, y: tableView.contentSize.height), animated: true)
+            scrollToBottom()
         }
     }
 }