changeset c29dde84bf42 in /home/hg/repos/gajim-plugins

author: Bahtiar `kalkin-` Gadimov <[email protected]>
branches: 
details:gajim-plugins?cmd=changeset;node=c29dde84bf42
description: Better OMEMO state logging

diffstat:

 omemo/ui.py |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r a5f711db868d -r c29dde84bf42 omemo/ui.py
--- a/omemo/ui.py       Sun Jan 10 13:42:23 2016 +0100
+++ b/omemo/ui.py       Sun Jan 10 13:42:35 2016 +0100
@@ -71,13 +71,16 @@
 
     def on_click(self, widget):
         enabled = self.get_active()
-        log.info('Clicked ' + str(enabled))
         if enabled:
+            log.info(self.contact.account.name + ' ⇒ Enable OMEMO for ' +
+                     self.contact.jid)
             self.plugin.omemo_enable_for(self.contact)
             self.chat_control._show_lock_image(True, 'OMEMO', True, True, 
False)
             self.chat_control.print_conversation_line(
                 u'\U0001F512 OMEMO encryption enabled ', 'status', '', None)
         else:
+            log.info(self.contact.account.name + ' ⇒ Disable OMEMO for ' +
+                     self.contact.jid)
             self.plugin.omemo_disable_for(self.contact)
             self.chat_control._show_lock_image(False, 'OMEMO', False, True,
                                                False)
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to