diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-02-14 02:53:21 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-02-14 02:53:21 -0500 |
commit | 25fd2c38400d3cafa63343721899d59b42e639a5 (patch) | |
tree | 4a603fd24fa8112e5f1f7c5042390a42ea5f45e2 /src/components/chatmessage.cpp | |
parent | 75213fcede7388e4390660fa2aa12ff253617fab (diff) | |
download | abaddon-portaudio-25fd2c38400d3cafa63343721899d59b42e639a5.tar.gz abaddon-portaudio-25fd2c38400d3cafa63343721899d59b42e639a5.zip |
fix per-guild avatars
Diffstat (limited to 'src/components/chatmessage.cpp')
-rw-r--r-- | src/components/chatmessage.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/chatmessage.cpp b/src/components/chatmessage.cpp index e5a65cd..d34730b 100644 --- a/src/components/chatmessage.cpp +++ b/src/components/chatmessage.cpp @@ -1,7 +1,7 @@ -#include "chatmessage.hpp" #include "abaddon.hpp" -#include "util.hpp" +#include "chatmessage.hpp" #include "lazyimage.hpp" +#include "util.hpp" #include <unordered_map> constexpr static int EmojiSize = 24; // settings eventually @@ -1068,11 +1068,11 @@ ChatMessageHeader::ChatMessageHeader(const Message &data) }; img.LoadFromURL(author->GetAvatarURL(data.GuildID), sigc::track_obj(cb, *this)); - if (author->HasAnimatedAvatar()) { + if (author->HasAnimatedAvatar(data.GuildID)) { auto cb = [this](const Glib::RefPtr<Gdk::PixbufAnimation> &pb) { m_anim_avatar = pb; }; - img.LoadAnimationFromURL(author->GetAvatarURL("gif"), AvatarSize, AvatarSize, sigc::track_obj(cb, *this)); + img.LoadAnimationFromURL(author->GetAvatarURL(data.GuildID, "gif"), AvatarSize, AvatarSize, sigc::track_obj(cb, *this)); } get_style_context()->add_class("message-container"); |