diff options
author | Thibaut Girka <thib@sitedethib.com> | 2019-02-09 14:18:44 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2019-02-17 17:18:34 +0100 |
commit | b97aa9b44b8ffc6d89824c91b0b85ffa7135fc32 (patch) | |
tree | 427a7cd658087a55f494fa1ef657e4c770f9f535 /plugins | |
parent | 6ffa82d6223ce46d7ef0e8e145db4892dfe67f23 (diff) | |
download | dino-b97aa9b44b8ffc6d89824c91b0b85ffa7135fc32.tar.gz dino-b97aa9b44b8ffc6d89824c91b0b85ffa7135fc32.zip |
Add fallback text when a known to be OMEMO-encrypted message failed to decrypt
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/omemo/src/trust_manager.vala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/omemo/src/trust_manager.vala b/plugins/omemo/src/trust_manager.vala index ef984ef6..75c0d809 100644 --- a/plugins/omemo/src/trust_manager.vala +++ b/plugins/omemo/src/trust_manager.vala @@ -247,6 +247,7 @@ 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) message.body = "[This message is OMEMO encrypted]"; if (!Plugin.ensure_context()) return false; MessageFlag flag = new MessageFlag(); stanza.add_flag(flag); |