diff options
author | fiaxh <git@lightrise.org> | 2020-06-10 19:53:56 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2020-06-10 19:53:56 +0200 |
commit | 50c55c7f55aff6622d242bdcf2b58d5f7956f28e (patch) | |
tree | b8c26336bb3003defafe987980c17fd2fdc07bd4 /main/src | |
parent | daf803e7730555639517de18c89da42e73557679 (diff) | |
download | dino-50c55c7f55aff6622d242bdcf2b58d5f7956f28e.tar.gz dino-50c55c7f55aff6622d242bdcf2b58d5f7956f28e.zip |
Fetch avatars only when they are used
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/ui/avatar_image.vala | 2 | ||||
-rw-r--r-- | main/src/ui/manage_accounts/dialog.vala | 2 |
2 files changed, 2 insertions, 2 deletions
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)); } |