Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Weblate
gajim
Commits
87a2ff3d
Commit
87a2ff3d
authored
18 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
show by default all events in roster
parent
1a2bea66
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/notify.py
+4
-9
4 additions, 9 deletions
src/notify.py
with
4 additions
and
9 deletions
src/notify.py
+
4
−
9
View file @
87a2ff3d
...
...
@@ -42,11 +42,9 @@ def get_show_in_roster(event, account, contact):
return
False
if
event
==
'
message_received
'
:
chat_control
=
helpers
.
get_chat_control
(
account
,
contact
)
if
not
chat_control
:
return
True
elif
event
==
'
ft_request
'
:
return
True
return
False
if
chat_control
:
return
False
return
True
def
get_show_in_systray
(
event
,
account
,
contact
):
'''
Return True if this event must be shown in roster, else False
'''
...
...
@@ -56,10 +54,7 @@ def get_show_in_systray(event, account, contact):
return
True
if
gajim
.
config
.
get_per
(
'
notifications
'
,
str
(
num
),
'
systray
'
)
==
'
no
'
:
return
False
if
event
in
(
'
message_received
'
,
'
ft_request
'
,
'
gc_msg_highlight
'
,
'
ft_request
'
):
return
True
return
False
return
True
def
get_advanced_notification
(
event
,
account
,
contact
):
'''
Returns the number of the first advanced notification or None
'''
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment