[Git][gajim/gajim][master] Fix it better

Philipp Hörist gitlab at dev.gajim.org
Fri Jul 13 18:10:01 CEST 2018


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


Commits:
28aada12 by Philipp Hörist at 2018-07-13T18:09:48+02:00
Fix it better

- - - - -


1 changed file:

- gajim/common/connection_handlers.py


Changes:

=====================================
gajim/common/connection_handlers.py
=====================================
--- a/gajim/common/connection_handlers.py
+++ b/gajim/common/connection_handlers.py
@@ -533,7 +533,10 @@ class ConnectionHandlersBase:
         # We got our message's receipt
         if obj.receipt_received_tag and app.config.get_per('accounts',
         self.name, 'request_receipt'):
-            if obj.session and not obj.session.ctrl:
+            ctrl = None
+            if obj.session is not None:
+                ctrl = obj.session.control
+            if not ctrl:
                 # Received <message> doesn't have the <thread> element
                 # or control is not bound to session?
                 # --> search for it



View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/28aada122d550ef2acba3eeabc524ba8f9c97b55

-- 
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/28aada122d550ef2acba3eeabc524ba8f9c97b55
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/20180713/8ed03b71/attachment-0001.html>


More information about the Commits mailing list