plugin XEP-0045: display a note when no configuration is available on the room

This commit is contained in:
Goffi 2018-05-11 18:18:06 +02:00
commit 8f70b2528f

View file

@ -280,6 +280,9 @@ class XEP_0045(object):
return defer.fail(exceptions.DataError)
def xmluiReceived(xmlui):
if not xmlui:
msg = D_(u"No configuration available for this room")
return {"xmlui": xml_tools.note(msg).toXml()}
return {"xmlui": xmlui.toXml()}
return self.configureRoom(client, room_jid).addCallback(xmluiReceived)