Commit 3e1c4791 authored by Philipp Hörist's avatar Philipp Hörist

StartChat: Dont create default avatar for new JID rows

parent a3e63057
......@@ -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,
def _get_avatar_image(self, account, jid):
scale = self.get_scale_factor()
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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment