Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
2582:2e6864b1d577 | 2583:8378806a70fe |
---|---|
303 d = client._muc_client.getConfiguration(room_jid) | 303 d = client._muc_client.getConfiguration(room_jid) |
304 d.addCallback(config2XMLUI) | 304 d.addCallback(config2XMLUI) |
305 return d | 305 return d |
306 | 306 |
307 def _submitConfiguration(self, raw_data, profile): | 307 def _submitConfiguration(self, raw_data, profile): |
308 cancelled = C.bool(raw_data.get("cancelled", C.BOOL_FALSE)) | |
309 if cancelled: | |
310 return defer.succeed({}) | |
308 client = self.host.getClient(profile) | 311 client = self.host.getClient(profile) |
309 try: | 312 try: |
310 session_data = self._sessions.profileGet(raw_data["session_id"], profile) | 313 session_data = self._sessions.profileGet(raw_data["session_id"], profile) |
311 except KeyError: | 314 except KeyError: |
312 log.warning(D_("Session ID doesn't exist, session has probably expired.")) | 315 log.warning(D_("Session ID doesn't exist, session has probably expired.")) |