Commit 3af3b647 authored by Daniel Brötzmann's avatar Daniel Brötzmann Committed by Philipp Hörist

StartChat: Use AvatarSize.CHAT for avatars

parent 5214a2f2
......@@ -404,14 +404,14 @@ def __init__(self, account, contact, jid, name, show_account,
scale = self.get_scale_factor()
avatar = app.contacts.get_avatar(
account, jid, AvatarSize.ROSTER, scale)
account, jid, AvatarSize.CHAT, scale)
if avatar is None:
image = Gtk.Image.new_from_icon_name(
'avatar-default', Gtk.IconSize.DND)
image = Gtk.Image.new_from_surface(avatar)
image.set_size_request(AvatarSize.ROSTER, AvatarSize.ROSTER)
image.set_size_request(AvatarSize.CHAT, AvatarSize.CHAT)
middle_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=0)
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