[omemo] Add fallback body
This commit is contained in:
1 parent
9f700bab33
commit
5fe9b21a7d
1 file changed
+5
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user