Philipp Hörist pushed to branch master at gajim / gajim
Commits:
b1c5209d by Philipp Hörist at 2023-10-11T22:15:06+02:00
fix: MUC: Don’t show old join errors when disconnected from room
- - - - -
1 changed file:
- gajim/common/modules/muc.py
Changes:
=====================================
gajim/common/modules/muc.py
=====================================
@@ -868,7 +868,12 @@ def _on_moderation(self,
def cancel_password_request(self, room_jid: JID) -> None:
self._set_muc_state(room_jid, MUCJoinedState.NOT_JOINED)
- def _room_join_complete(self, muc_data: MUCData):
+ def _room_join_complete(self, muc_data: MUCData) -> None:
+ # Reset errors from previous tries, otherwise when we are
+ # disconnected from the room, the ChatFunctionPage will be shown
+ muc_data.error = None
+ muc_data.error_text = None
+
self._set_muc_state(muc_data.jid, MUCJoinedState.JOINED)
self._remove_rejoin_timeout(muc_data.jid)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/b1c5209d091bae96782394fb9f8b264fe8dde843
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/b1c5209d091bae96782394fb9f8b264fe8dde843
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]