diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-11-18 16:25:10 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-11-18 16:25:10 -0500 |
commit | 1463d8da9e1b4c49021e6fa75795e2cd054b6227 (patch) | |
tree | 467dfe98b26844850ebb5a941b0282b3b3989089 /components/chatwindow.cpp | |
parent | a0ece884d0aca84597f9dba7d42108d4bb847963 (diff) | |
download | abaddon-portaudio-1463d8da9e1b4c49021e6fa75795e2cd054b6227.tar.gz abaddon-portaudio-1463d8da9e1b4c49021e6fa75795e2cd054b6227.zip |
move avatar stuff out of chatwindow
Diffstat (limited to 'components/chatwindow.cpp')
-rw-r--r-- | components/chatwindow.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/components/chatwindow.cpp b/components/chatwindow.cpp index 6d7edca..a42319b 100644 --- a/components/chatwindow.cpp +++ b/components/chatwindow.cpp @@ -192,19 +192,6 @@ void ChatWindow::ProcessNewMessage(Snowflake id, bool prepend) { }); m_num_rows++; - Abaddon::Get().GetImageManager().LoadFromURL(user->GetAvatarURL("png", "32"), [this, user_id](Glib::RefPtr<Gdk::Pixbuf> buf) { - Glib::signal_idle().connect([this, buf, user_id]() -> bool { - auto children = m_list->get_children(); - for (auto child : children) { - auto *row = dynamic_cast<ChatMessageHeader *>(child); - if (row == nullptr) continue; - if (row->UserID == user_id) - row->SetAvatarFromPixbuf(buf); - } - - return false; - }); - }); } auto *content = CreateMessageComponent(id); |