Explorar o código

check parent message type before scrolling to webxdc

cyberta %!s(int64=3) %!d(string=hai) anos
pai
achega
e036b6b3fb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      deltachat-ios/Chat/ChatViewController.swift

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

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