Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
gajim
gajim
Commits
3e1c4791
Commit
3e1c4791
authored
Aug 25, 2019
by
Philipp Hörist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
StartChat: Dont create default avatar for new JID rows
parent
a3e63057
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
gajim/gtk/start_chat.py
gajim/gtk/start_chat.py
+7
-1
No files found.
gajim/gtk/start_chat.py
View file @
3e1c4791
...
...
@@ -35,6 +35,7 @@
from
gajim.gtk.groupchat_info
import
GroupChatInfoScrolled
from
gajim.gtk.util
import
get_builder
from
gajim.gtk.util
import
ensure_not_destroyed
from
gajim.gtk.util
import
get_icon_name
class
Search
(
IntEnum
):
...
...
@@ -618,8 +619,13 @@ def __init__(self, account, contact, jid, name, show_account,
self
.
show_all
()
def
_get_avatar_image
(
self
,
account
,
jid
):
scale
=
self
.
get_scale_factor
()
if
self
.
new
:
icon_name
=
'avatar-default'
if
self
.
groupchat
:
icon_name
=
get_icon_name
(
'muc-inactive'
)
return
Gtk
.
Image
.
new_from_icon_name
(
icon_name
,
Gtk
.
IconSize
.
DND
)
scale
=
self
.
get_scale_factor
()
if
self
.
groupchat
:
surface
=
app
.
interface
.
avatar_storage
.
get_muc_surface
(
account
,
jid
,
AvatarSize
.
CHAT
,
scale
)
...
...
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