aboutsummaryrefslogtreecommitdiff
path: root/src/Cache.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-15 18:45:34 +0200
committerdec05eba <dec05eba@protonmail.com>2018-05-15 18:45:39 +0200
commit777d8053540cf94f5b2156c8e2b242efb4d07007 (patch)
tree2837ace9a921097090166ab812d50ce959a3bd53 /src/Cache.cpp
parent67a34bbe01f1b271f37fb2b0cbe2c381357204ee (diff)
asdf
Diffstat (limited to 'src/Cache.cpp')
-rw-r--r--src/Cache.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Cache.cpp b/src/Cache.cpp
index 16cd4d0..66b6f71 100644
--- a/src/Cache.cpp
+++ b/src/Cache.cpp
@@ -288,6 +288,7 @@ namespace dchat
boost::filesystem::remove(downloadingFilepath, err);
}
+ // TODO: Do not load content in this thread. Return LOADING status and load it in another thread, because with a lot of images, chat can freeze
ContentByUrlResult contentByUrlResult = loadImageFromFile(filepath);
if(contentByUrlResult.type == ContentByUrlResult::Type::CACHED)
{