# HG changeset patch # User Goffi # Date 1551457935 -3600 # Node ID 9a3b99acad9191995c0ea62969c83ff33f167680 # Parent 177f11163ed090c7f310ee8b84f68f768693dc2a 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. diff -r 177f11163ed0 -r 9a3b99acad91 sat/plugins/plugin_xep_0045.py --- a/sat/plugins/plugin_xep_0045.py Fri Mar 01 16:17:00 2019 +0100 +++ b/sat/plugins/plugin_xep_0045.py Fri Mar 01 17:32:15 2019 +0100 @@ -968,7 +968,8 @@ @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)