From 7fae2fb35b194f96198e1e0789ba034736b9b9cb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 22 Jul 2023 21:48:46 +0300 Subject: offline files to be stored inside usual folder for incoming files, not inside %profile_data%\\dlFiles --- plugins/NewStory/src/history_array.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/NewStory/src/history_array.cpp') diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp index 0bcb7e8f9b..adaa690f81 100644 --- a/plugins/NewStory/src/history_array.cpp +++ b/plugins/NewStory/src/history_array.cpp @@ -131,15 +131,15 @@ void ItemData::load(bool bFullLoad) CMStringW wszFileName; DB::FILE_BLOB blob(dbe); if (blob.isOffline()) { - wszFileName = Srmm_GetOfflineFileName(hContact); + wszFileName = blob.getLocalName(); } else { wchar_t buf[MAX_PATH]; CallService(MS_FILE_GETRECEIVEDFILESFOLDERW, hContact, (LPARAM)buf); wszFileName = buf; + wszFileName.Append(blob.getName()); } - wszFileName.Append(blob.getName()); // if a filename contains spaces, URL will be broken if (wszFileName.Find(' ') != -1) { -- cgit v1.2.3