summaryrefslogtreecommitdiff
path: root/components/chatwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'components/chatwindow.cpp')
-rw-r--r--components/chatwindow.cpp13
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);