fix clicking notification when someone logs in
This commit is contained in:
parent
9d98117f21
commit
d541b42236
11
src/gajim.py
11
src/gajim.py
|
@ -2135,11 +2135,12 @@ class Interface:
|
||||||
elif type_ in ('printed_chat', 'chat', ''):
|
elif type_ in ('printed_chat', 'chat', ''):
|
||||||
# '' is for log in/out notifications
|
# '' is for log in/out notifications
|
||||||
|
|
||||||
event = gajim.events.get_first_event(account, fjid, type_)
|
if type_ != '':
|
||||||
if not event:
|
event = gajim.events.get_first_event(account, fjid, type_)
|
||||||
event = gajim.events.get_first_event(account, jid, type_)
|
if not event:
|
||||||
if not event:
|
event = gajim.events.get_first_event(account, jid, type_)
|
||||||
return
|
if not event:
|
||||||
|
return
|
||||||
|
|
||||||
if type_ == 'printed_chat':
|
if type_ == 'printed_chat':
|
||||||
ctrl = event.parameters[0]
|
ctrl = event.parameters[0]
|
||||||
|
|
Loading…
Reference in New Issue