plugin XEP-0045: fixed item-not-found exception when creating a room:
MAM was checked on the room itself, this patch changes it by checking the MUC service instead.
This commit is contained in:
parent
079d04f6ca
commit
cf914b58eb
1 changed files with 2 additions and 1 deletions
|
|
@ -968,7 +968,8 @@ class SatMUCClient(muc.MUCClient):
|
|||
|
||||
@defer.inlineCallbacks
|
||||
def join(self, room_jid, nick, password=None):
|
||||
has_mam = yield self.host.hasFeature(self.client, mam.NS_MAM, room_jid)
|
||||
room_service = jid.JID(room_jid.host)
|
||||
has_mam = yield self.host.hasFeature(self.client, mam.NS_MAM, room_service)
|
||||
if not self._mam or not has_mam:
|
||||
room = yield self._joinLegacy(self.client, room_jid, nick, password)
|
||||
defer.returnValue(room)
|
||||
|
|
|
|||
Loading…
Reference in a new issue