Skip to content

Commit

Permalink
Save cpu on Bitlbee by skipping avatar downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
EionRobb committed Aug 19, 2024
1 parent 3d531e8 commit ea54c6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libdiscord.c
Original file line number Diff line number Diff line change
Expand Up @@ -8234,6 +8234,10 @@ discord_get_avatar(DiscordAccount *da, DiscordUser *user, gboolean is_buddy)
return;
}

/* bitlbee is allergic to pictures */
if (purple_strequal(purple_core_get_ui(), "BitlBee"))
return;

/* libpurple only manages checksums for buddies. If we're fetching our
* own icon, we need to use our own store */

Expand Down

0 comments on commit ea54c6f

Please sign in to comment.