Philipp Hörist pushed to branch mainwindow at gajim / gajim
Commits: d48d1772 by lovetox at 2021-03-02T20:28:51+01:00 Groupchat: Restore got_disconnected() - - - - - 1 changed file: - gajim/groupchat_control.py Changes: ===================================== gajim/groupchat_control.py ===================================== @@ -992,6 +992,20 @@ def is_connected(self) -> bool: def is_connected(self, value: bool) -> None: app.gc_connected[self.account][self.room_jid] = value + def got_disconnected(self): + self.xml.formattings_button.set_sensitive(False) + + self.roster.enable_sort(False) + self.roster.clear() + + self.is_connected = False + ChatControlBase.got_disconnected(self) + + con = app.connections[self.account] + con.get_module('Chatstate').remove_delay_timeout(self.contact) + + self.update_actions() + def leave(self, reason=None): self.got_disconnected() self._close_control(reason=reason) View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/d48d1772464ba6a1bea791bd0d8903a8c965c3da -- View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/d48d1772464ba6a1bea791bd0d8903a8c965c3da You're receiving this email because of your account on dev.gajim.org.
_______________________________________________ Commits mailing list Commits@gajim.org https://lists.gajim.org/cgi-bin/listinfo/commits