Mercurial > libervia-backend
changeset 2583:8378806a70fe
plugin XEP-0045: fixed room configuration cancellation
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 11 May 2018 17:24:37 +0200 (2018-05-11) |
parents | 2e6864b1d577 |
children | f8e4d855001e |
files | sat/plugins/plugin_xep_0045.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0045.py Fri May 11 17:13:58 2018 +0200 +++ b/sat/plugins/plugin_xep_0045.py Fri May 11 17:24:37 2018 +0200 @@ -305,6 +305,9 @@ return d 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) try: session_data = self._sessions.profileGet(raw_data["session_id"], profile)