Mercurial > libervia-backend
diff sat/plugins/plugin_xep_0045.py @ 2583:8378806a70fe
plugin XEP-0045: fixed room configuration cancellation
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 11 May 2018 17:24:37 +0200 |
parents | 395a3d1c2888 |
children | f8e4d855001e |
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)