Commit 31a90949 authored by Philipp Hörist's avatar Philipp Hörist

MUC: Set state to NOT_JOINED on password request

parent 21438499
...@@ -366,6 +366,7 @@ def _on_error_presence(self, _con, _stanza, properties): ...@@ -366,6 +366,7 @@ def _on_error_presence(self, _con, _stanza, properties):
muc_data.jid, muc_data.nick) muc_data.jid, muc_data.nick)
self._join(muc_data) self._join(muc_data)
elif properties.error.condition == 'not-authorized': elif properties.error.condition == 'not-authorized':
self._set_muc_state(room_jid, MUCJoinedState.NOT_JOINED)
self._raise_muc_event('muc-password-required', properties) self._raise_muc_event('muc-password-required', properties)
else: else:
self._set_muc_state(room_jid, MUCJoinedState.NOT_JOINED) self._set_muc_state(room_jid, MUCJoinedState.NOT_JOINED)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment