Przeglądaj źródła

Merge pull request #1482 from deltachat/no_outgoing_webxdc_info_messages

don't show outgoing webxdc info messages
cyBerta 3 lat temu
rodzic
commit
f5ba9b5c3a
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      deltachat-ios/Chat/ChatViewController.swift

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

@@ -1437,6 +1437,12 @@ class ChatViewController: UITableViewController {
         } else {
         } else {
             // new outgoing message
             // new outgoing message
             let msg = dcContext.getMessage(id: messageId)
             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,
             if msg.state != DC_STATE_OUT_DRAFT,
                msg.chatId == chatId {
                msg.chatId == chatId {
                 if let newMsgMarkerIndex = messageIds.firstIndex(of: Int(DC_MSG_ID_MARKER1)) {
                 if let newMsgMarkerIndex = messageIds.firstIndex(of: Int(DC_MSG_ID_MARKER1)) {