changeset 4a5f4cca0e4d in /home/hg/repos/gajim-plugins
author: lovetox forenjunkie@chello.at branches: details:gajim-plugins?cmd=changeset;node=4a5f4cca0e4d description: Add body to every grpchat message
diffstat:
omemo/__init__.py | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r 31aba74f8a17 -r 4a5f4cca0e4d omemo/__init__.py --- a/omemo/__init__.py Tue Oct 11 20:50:28 2016 +0200 +++ b/omemo/__init__.py Mon Oct 17 21:19:01 2016 +0200 @@ -568,6 +568,11 @@ 'namespace': NS_OMEMO}) event.msg_iq.addChild(node=eme_node)
+ # Add Message for devices that dont support OMEMO + support_msg = 'You received a message encrypted with ' \ + 'OMEMO but your client doesnt 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)