Commit a6b4d993 authored by Philipp Hörist's avatar Philipp Hörist

Simplify module import

parent ca1b2091
Pipeline #4001 passed with stages
in 2 minutes and 45 seconds
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment