Browse Source

show quoted message at tableview's top position

cyberta 4 năm trước cách đây
mục cha
commit
68d8e255d2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      deltachat-ios/Chat/ChatViewController.swift

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

@@ -1075,7 +1075,7 @@ extension ChatViewController: BaseMessageCellDelegate {
         if let quoteMsg = msg.quoteMessage,
            let index = messageIds.firstIndex(of: quoteMsg.id) {
             let indexPath = IndexPath(row: index, section: 0)
-            tableView.scrollToRow(at: indexPath, at: .middle, animated: true)
+            tableView.scrollToRow(at: indexPath, at: .top, animated: true)
         }
     }