plugin XEP-0045: fixed room configuration cancellation
This commit is contained in:
parent
bc83869090
commit
cd78b78abf
1 changed files with 3 additions and 0 deletions
|
|
@ -305,6 +305,9 @@ class XEP_0045(object):
|
||||||
return d
|
return d
|
||||||
|
|
||||||
def _submitConfiguration(self, raw_data, profile):
|
def _submitConfiguration(self, raw_data, profile):
|
||||||
|
cancelled = C.bool(raw_data.get("cancelled", C.BOOL_FALSE))
|
||||||
|
if cancelled:
|
||||||
|
return defer.succeed({})
|
||||||
client = self.host.getClient(profile)
|
client = self.host.getClient(profile)
|
||||||
try:
|
try:
|
||||||
session_data = self._sessions.profileGet(raw_data["session_id"], profile)
|
session_data = self._sessions.profileGet(raw_data["session_id"], profile)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue