浏览代码

jump from info message to corresponding webxdc

cyberta 3 年之前
父节点
当前提交
076c432381
共有 2 个文件被更改,包括 6 次插入0 次删除
  1. 2 0
      deltachat-ios/Chat/ChatViewController.swift
  2. 4 0
      deltachat-ios/Chat/Views/Cells/InfoMessageCell.swift

+ 2 - 0
deltachat-ios/Chat/ChatViewController.swift

@@ -881,6 +881,8 @@ class ChatViewController: UITableViewController {
             if let url = NSURL(string: message.getVideoChatUrl()) {
                 UIApplication.shared.open(url as URL)
             }
+        } else if message.isInfo, let parent = message.parent {
+            scrollToMessage(msgId: parent.id)
         }
         _ = handleUIMenu()
     }

+ 4 - 0
deltachat-ios/Chat/Views/Cells/InfoMessageCell.swift

@@ -73,3 +73,7 @@ class InfoMessageCell: UITableViewCell {
     }
 
 }
+
+extension InfoMessageCell: SelectableCell {
+    public func showSelectionBackground(_ show: Bool) {}
+}