aboutsummaryrefslogtreecommitdiff
path: root/plugins/omemo/src
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2020-04-06 15:33:43 +0200
committerfiaxh <git@lightrise.org>2020-04-06 15:33:43 +0200
commit5b2683dfa5241777d621866e4e0a0790766433c2 (patch)
tree55ee240204fd3d0bab614c4e6de5fa29bc7ccbdc /plugins/omemo/src
parentd091a6c3cd0812873bcdef53c51a2f60e12f2b8a (diff)
downloaddino-5b2683dfa5241777d621866e4e0a0790766433c2.tar.gz
dino-5b2683dfa5241777d621866e4e0a0790766433c2.zip
Last message correction fixes
Diffstat (limited to 'plugins/omemo/src')
-rw-r--r--plugins/omemo/src/logic/trust_manager.vala3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/omemo/src/logic/trust_manager.vala b/plugins/omemo/src/logic/trust_manager.vala
index 1e77fcdd..50c9bbcb 100644
--- a/plugins/omemo/src/logic/trust_manager.vala
+++ b/plugins/omemo/src/logic/trust_manager.vala
@@ -283,6 +283,9 @@ public class TrustManager {
StanzaNode? _encrypted = stanza.stanza.get_subnode("encrypted", NS_URI);
if (_encrypted == null || MessageFlag.get_flag(stanza) != null || stanza.from == null) return false;
StanzaNode encrypted = (!)_encrypted;
+ if (message.body == null && Xep.ExplicitEncryption.get_encryption_tag(stanza) == NS_URI) {
+ message.body = "[This message is OMEMO encrypted]"; // TODO temporary
+ };
if (!Plugin.ensure_context()) return false;
int identity_id = db.identity.get_id(conversation.account.id);
MessageFlag flag = new MessageFlag();