summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history_array.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-07-22 21:48:46 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-07-22 21:48:46 +0300
commit7fae2fb35b194f96198e1e0789ba034736b9b9cb (patch)
tree7e976c26ddf51f6868b1d66186c127b019f1c31c /plugins/NewStory/src/history_array.cpp
parentf51a93d218c3e3184be365be1c078086493c6fed (diff)
offline files to be stored inside usual folder for incoming files, not inside %profile_data%\\dlFiles
Diffstat (limited to 'plugins/NewStory/src/history_array.cpp')
-rw-r--r--plugins/NewStory/src/history_array.cpp4
1 files changed, 2 insertions, 2 deletions
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) {