diff options
Diffstat (limited to 'components/chatwindow.cpp')
-rw-r--r-- | components/chatwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/chatwindow.cpp b/components/chatwindow.cpp index 710d2ad..8b2b649 100644 --- a/components/chatwindow.cpp +++ b/components/chatwindow.cpp @@ -210,11 +210,11 @@ void ChatWindow::ProcessNewMessage(Snowflake id, bool prepend) { }); content->signal_image_load().connect([this, id](std::string url) { auto &mgr = Abaddon::Get().GetImageManager(); - mgr.LoadFromURL(url, [this, id](Glib::RefPtr<Gdk::Pixbuf> buf) { + mgr.LoadFromURL(url, [this, id, url](Glib::RefPtr<Gdk::Pixbuf> buf) { if (m_id_to_widget.find(id) != m_id_to_widget.end()) { auto *x = dynamic_cast<ChatMessageItemContainer *>(m_id_to_widget.at(id)); if (x != nullptr) - x->UpdateImage(); + x->UpdateImage(url, buf); } }); }); |