Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2019-01-06 00:24:09 +0300
committerPhilipp Hörist <philipp@hoerist.com>2019-01-06 00:24:09 +0300
commit5fe9b21a7d51377b069936fde70cd2c8c9747fa9 (patch)
tree19c6213edaac4edc4a26acde42be755403c29699 /omemo/modules
parent9f700bab331ebc03492d6155a334ecded3989b9f (diff)
[omemo] Add fallback body
Diffstat (limited to 'omemo/modules')
-rw-r--r--omemo/modules/omemo.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/omemo/modules/omemo.py b/omemo/modules/omemo.py
index b0119f8..1b6e04a 100644
--- a/omemo/modules/omemo.py
+++ b/omemo/modules/omemo.py
@@ -594,6 +594,11 @@ class OMEMO:
'namespace': NS_OMEMO})
event.msg_iq.addChild(node=eme_node)
+ # Add Message for devices that don't support OMEMO
+ support_msg = _("You received a message encrypted with " \
+ "OMEMO but your client doesn't support OMEMO.")
+ event.msg_iq.setBody(support_msg)
+
# Store Hint for MAM
store = Node('store', attrs={'xmlns': NS_HINTS})
event.msg_iq.addChild(node=store)