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


Commits:
a6b4d993 by Philipp Hörist at 2019-08-05T22:03:59Z
Simplify module import

- - - - -


1 changed file:

- gajim/common/modules/message.py


Changes:

=====================================
gajim/common/modules/message.py
=====================================
@@ -21,7 +21,6 @@ from nbxmpp.structs import StanzaHandler
 from nbxmpp.const import MessageType
 
 from gajim.common import app
-from gajim.common import caps_cache
 from gajim.common.i18n import _
 from gajim.common.nec import NetworkIncomingEvent
 from gajim.common.nec import NetworkEvent
@@ -294,7 +293,7 @@ class Message(BaseModule):
                                         message_id=event.message_id)
 
     def _check_for_mam_compliance(self, room_jid, stanza_id):
-        namespace = caps_cache.muc_caps_cache.get_mam_namespace(room_jid)
+        namespace = muc_caps_cache.get_mam_namespace(room_jid)
         if stanza_id is None and namespace == nbxmpp.NS_MAM_2:
             self._log.warning('%s announces mam:2 without stanza-id', room_jid)
 
@@ -307,7 +306,7 @@ class Message(BaseModule):
             return None, None
 
         if properties.type.is_groupchat:
-            namespace = caps_cache.muc_caps_cache.get_mam_namespace(
+            namespace = muc_caps_cache.get_mam_namespace(
                 properties.jid.getBare())
             archive = properties.jid
         else:



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

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/a6b4d993bd9b08b2686165bec72678b727d7e727
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to