浏览代码

Merge pull request #980 from deltachat/jump_to_original_message

show quoted message at tableview's top position
bjoern 4 年之前
父节点
当前提交
8e8df20db5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      deltachat-ios/Chat/ChatViewController.swift

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

@@ -1083,7 +1083,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)
         }
     }