From 777d8053540cf94f5b2156c8e2b242efb4d07007 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 15 May 2018 18:45:34 +0200 Subject: asdf --- src/Cache.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Cache.cpp') 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) { -- cgit v1.2.3