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
42487409
Commit
42487409
authored
19 years ago
by
nkour
Browse files
Options
Downloads
Patches
Plain Diff
ACE: hide_avatar_of_transport
parent
524866db
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/common/config.py
+1
-0
1 addition, 0 deletions
src/common/config.py
src/gtkgui_helpers.py
+6
-0
6 additions, 0 deletions
src/gtkgui_helpers.py
with
7 additions
and
0 deletions
src/common/config.py
+
1
−
0
View file @
42487409
...
...
@@ -163,6 +163,7 @@ class Config:
'
print_status_in_chats
'
:
[
opt_bool
,
True
,
_
(
'
If False, you will no longer see status line in chats when a contact changes his or her status and/or his status message.
'
)],
'
log_contact_status_changes
'
:
[
opt_bool
,
False
],
'
restored_messages_color
'
:
[
opt_str
,
'
grey
'
],
'
hide_avatar_of_transport
'
:
[
opt_bool
,
False
],
}
__options_per_key
=
{
...
...
This diff is collapsed.
Click to expand it.
src/gtkgui_helpers.py
+
6
−
0
View file @
42487409
...
...
@@ -433,6 +433,12 @@ def get_avatar_pixbuf_from_cache(jid):
returns None if there is no image in vcard
returns
'
ask
'
if cached vcard should not be used (user changed his vcard,
so we have new sha) or if we don
'
t have the vcard
'''
if
gajim
.
config
.
get
(
'
hide_avatar_of_transport
'
)
and
\
gajim
.
jid_is_transport
(
jid
):
# don't show avatar for the transport itself
return
None
if
jid
not
in
os
.
listdir
(
gajim
.
VCARDPATH
):
return
'
ask
'
...
...
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