summaryrefslogtreecommitdiff
path: root/src/components/chatinput.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/chatinput.cpp')
-rw-r--r--src/components/chatinput.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/chatinput.cpp b/src/components/chatinput.cpp
index 1fcf628..0590379 100644
--- a/src/components/chatinput.cpp
+++ b/src/components/chatinput.cpp
@@ -204,7 +204,8 @@ bool ChatInputAttachmentContainer::AddImage(const Glib::RefPtr<Gdk::Pixbuf> &pb)
static unsigned go_up = 0;
std::string dest_name = "pasted-image-" + std::to_string(go_up++);
- const auto path = (std::filesystem::temp_directory_path() / "abaddon-cache" / dest_name).string();
+ const auto cache_path = Abaddon::Get().GetImageManager().GetCache().GetCachePath();
+ const auto path = (cache_path / dest_name).string();
try {
pb->save(path, "png");