Эх сурвалжийг харах

fix empty chat screen after orientation change to landscape

cyberta 3 жил өмнө
parent
commit
dd17eb146f

+ 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()
         }
     }
 }