Ver código fonte

fix empty chat screen after orientation change to landscape

cyberta 3 anos atrás
pai
commit
dd17eb146f
1 arquivos alterados com 1 adições e 1 exclusões
  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,
                                                    bottom: size.height + messageInputBar.keyboardHeight,
                                                    right: 0)
                                                    right: 0)
         if isLastRowVisible() && !tableView.isDragging && !tableView.isDecelerating  && highlightedMsg == nil && !ignoreInputBarChange {
         if isLastRowVisible() && !tableView.isDragging && !tableView.isDecelerating  && highlightedMsg == nil && !ignoreInputBarChange {
-            self.tableView.setContentOffset(CGPoint(x: 0, y: tableView.contentSize.height), animated: true)
+            scrollToBottom()
         }
         }
     }
     }
 }
 }