From 50c55c7f55aff6622d242bdcf2b58d5f7956f28e Mon Sep 17 00:00:00 2001 From: fiaxh Date: Wed, 10 Jun 2020 19:53:56 +0200 Subject: Fetch avatars only when they are used --- main/src/ui/avatar_image.vala | 2 +- main/src/ui/manage_accounts/dialog.vala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'main/src/ui') diff --git a/main/src/ui/avatar_image.vala b/main/src/ui/avatar_image.vala index b9366751..6142b26e 100644 --- a/main/src/ui/avatar_image.vala +++ b/main/src/ui/avatar_image.vala @@ -93,7 +93,7 @@ public class AvatarImage : Misc { update_avatar_if_jid(jid); } - private void on_received_avatar(Gdk.Pixbuf avatar, Jid jid, Account account) { + private void on_received_avatar(Jid jid, Account account) { if (!account.equals(this.account)) return; update_avatar_if_jid(jid); } diff --git a/main/src/ui/manage_accounts/dialog.vala b/main/src/ui/manage_accounts/dialog.vala index 8685ed88..568b7ff4 100644 --- a/main/src/ui/manage_accounts/dialog.vala +++ b/main/src/ui/manage_accounts/dialog.vala @@ -180,7 +180,7 @@ public class Dialog : Gtk.Dialog { return false; } - private void on_received_avatar(Pixbuf pixbuf, Jid jid, Account account) { + private void on_received_avatar(Jid jid, Account account) { if (selected_account.equals(account) && jid.equals(account.bare_jid)) { image.set_conversation(stream_interactor, new Conversation(account.bare_jid, account, Conversation.Type.CHAT)); } -- cgit v1.2.3-70-g09d2