Commit dc32941b authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Fix closing the control

parent a32bd7c8
......@@ -1287,8 +1287,10 @@ def on_cancel(is_checked):
on_yes(self)
def _close_control(self, reason=None):
self.shutdown(reason)
def _close_control(self):
app.window.activate_action(
'remove-chat',
GLib.Variant('as', [self.account, str(self.room_jid)]))
def set_control_active(self, state):
self.attention_flag = False
......@@ -1664,9 +1666,7 @@ def _on_page_close_clicked(self, _button=None):
self._close_control()
def _on_groupchat_state_abort_clicked(self, _button):
app.window.activate_action(
'remove-chat',
GLib.Variant('as', [self.account, str(self.room_jid)]))
self._close_control()
def _on_groupchat_state_join_clicked(self, _groupchat_state):
self._client.get_module('MUC').join(self.room_jid)
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