Commit 8f2bc1e1 authored by Philipp Hörist's avatar Philipp Hörist

Handle connection lost notification click

Fixes #8823
parent fa325a8f
Pipeline #1091 failed with stages
in 0 seconds
......@@ -227,7 +227,7 @@ class Interface:
path = gtkgui_helpers.get_icon_path('gajim-connection_lost', 48)
account = obj.conn.name
notify.popup(_('Connection Failed'), account, account,
'', path, obj.title, obj.msg)
'connection-lost', path, obj.title, obj.msg)
@staticmethod
def unblock_signed_in_notifications(account):
......@@ -1685,6 +1685,10 @@ class Interface:
resource = app.get_resource_from_jid(fjid)
jid = app.get_jid_without_resource(fjid)
if type_ == 'connection-lost':
app.interface.roster.window.present()
return
if type_ in ('printed_gc_msg', 'printed_marked_gc_msg', 'gc_msg'):
w = self.msg_win_mgr.get_window(jid, account)
if jid in self.minimized_controls[account]:
......
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