浏览代码

Merge pull request #1482 from deltachat/no_outgoing_webxdc_info_messages

don't show outgoing webxdc info messages
cyBerta 3 年之前
父节点
当前提交
f5ba9b5c3a
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      deltachat-ios/Chat/ChatViewController.swift

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

@@ -1437,6 +1437,12 @@ class ChatViewController: UITableViewController {
         } else {
             // new outgoing message
             let msg = dcContext.getMessage(id: messageId)
+            if msg.isInfo,
+               let parent = msg.parent,
+               parent.type == DC_MSG_WEBXDC {
+                return
+            }
+
             if msg.state != DC_STATE_OUT_DRAFT,
                msg.chatId == chatId {
                 if let newMsgMarkerIndex = messageIds.firstIndex(of: Int(DC_MSG_ID_MARKER1)) {