Procházet zdrojové kódy

jump from info message to corresponding webxdc

cyberta před 3 roky
rodič
revize
076c432381

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