summarylogtreecommitdiffstats
path: root/otr-fix.patch
blob: 68eaf8e09ed8c93ba5461400f263cdd91f677c6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- src/plugins/generic/otrplugin/src/psiotrplugin.cpp.orig	2018-08-07 10:34:08.066936689 +0800
+++ src/plugins/generic/otrplugin/src/psiotrplugin.cpp	2018-08-07 10:34:27.536937111 +0800
@@ -589,20 +589,6 @@
         xml.removeChild(htmlElement);
     }
 
-    if (m_onlineUsers[account][contact]->encrypted()) {
-        if (xml.attribute("to").contains("/")) {
-            // if not a bare jid
-            htmlElement = xml.ownerDocument().createElementNS("urn:xmpp:hints" ,"no-copy");
-            xml.appendChild(htmlElement);
-        }
-
-        htmlElement = xml.ownerDocument().createElementNS("urn:xmpp:hints", "no-permanent-store");
-        xml.appendChild(htmlElement);
-
-        htmlElement = xml.ownerDocument().createElementNS("urn:xmpp:carbons:2", "private");
-        xml.appendChild(htmlElement);
-    }
-
     return false;
 }