[Git][gajim/gajim][master] 2 commits: Fix pylint error

Philipp Hörist gitlab at dev.gajim.org
Sun Jan 6 11:10:18 CET 2019


Philipp Hörist pushed to branch master at gajim / gajim


Commits:
a64d986c by Philipp Hörist at 2019-01-06T01:15:17Z
Fix pylint error

- - - - -
6a958c57 by Philipp Hörist at 2019-01-06T10:10:07Z
Pass contact instead of string

Fixes #9529

- - - - -


1 changed file:

- gajim/common/modules/chatstates.py


Changes:

=====================================
gajim/common/modules/chatstates.py
=====================================
@@ -237,7 +237,7 @@ class Chatstate:
             if not contact.supports(nbxmpp.NS_CHATSTATES):
                 return None
 
-        self.set_active(contact.jid)
+        self.set_active(contact)
         return 'active'
 
     @ensure_enabled
@@ -355,8 +355,7 @@ class Chatstate:
         if contact.is_groupchat():
             return app.config.get_per(
                 'rooms', contact.jid, 'send_chatstate', 'composing_only')
-        else:
-            return app.config.get('outgoing_chat_state_notifications')
+        return app.config.get('outgoing_chat_state_notifications')
 
     def remove_delay_timeout(self, contact):
         timeout = self._delay_timeout_ids.get(contact.jid)



View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/eb99291d44626eb3dfbdb6ebd72f70652a445aec...6a958c572506025040426d61b09043c645221f5b

-- 
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/eb99291d44626eb3dfbdb6ebd72f70652a445aec...6a958c572506025040426d61b09043c645221f5b
You're receiving this email because of your account on dev.gajim.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gajim.org/pipermail/commits/attachments/20190106/65c9e738/attachment.html>


More information about the Commits mailing list