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
Pipeline #3859 passed with stages
in 2 minutes and 43 seconds
......@@ -404,14 +404,14 @@ class ContactRow(Gtk.Grid):
else:
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)
else:
image = Gtk.Image.new_from_surface(avatar)
image.set_size_request(AvatarSize.ROSTER, AvatarSize.ROSTER)
image.set_size_request(AvatarSize.CHAT, AvatarSize.CHAT)
self.add(image)
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