Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norstbox
gajim
Commits
b49eb060
Commit
b49eb060
authored
Sep 16, 2006
by
Yann Leboulanger
Browse files
differentiate single messages and chat messages when checking notifications. Fixes #2420
parent
70d1977c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/roster_window.py
View file @
b49eb060
...
...
@@ -2558,12 +2558,12 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
# We save it in a queue
type_
=
'chat'
event_type
=
'message_received'
if
msg_type
==
'normal'
:
type_
=
'normal'
show_in_roster
=
notify
.
get_show_in_roster
(
'message_received'
,
account
,
contact
)
show_in_systray
=
notify
.
get_show_in_systray
(
'message_received'
,
account
,
contact
)
event_type
=
'single_message_received'
show_in_roster
=
notify
.
get_show_in_roster
(
event_type
,
account
,
contact
)
show_in_systray
=
notify
.
get_show_in_systray
(
event_type
,
account
,
contact
)
event
=
gajim
.
events
.
create_event
(
type_
,
(
msg
,
subject
,
msg_type
,
tim
,
encrypted
,
resource
,
msg_id
),
show_in_roster
=
show_in_roster
,
show_in_systray
=
show_in_systray
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment