summaryrefslogtreecommitdiff
path: root/plugins/NewStory
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-07-16 19:10:36 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-07-16 19:10:36 +0300
commit428a9573a353898498b26cd323d4b8fabc754e20 (patch)
treee1ef6d549017c2c9c4d8d1610b0d8d27f96bc055 /plugins/NewStory
parentb1a6b67199a9d616df29dbf630fb70432a01052c (diff)
fixes #4535 (VK: в историю пишется кривая ссылка на отправленный файл)
Diffstat (limited to 'plugins/NewStory')
-rw-r--r--plugins/NewStory/src/history_array.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp
index 48a06f4043..0fa3433720 100644
--- a/plugins/NewStory/src/history_array.cpp
+++ b/plugins/NewStory/src/history_array.cpp
@@ -415,10 +415,12 @@ void ItemData::load(bool bLoadAlways)
break;
}
- wchar_t buf[MAX_PATH];
- File::GetReceivedFolder(hContact, buf, _countof(buf));
-
- CMStringW wszFileName = buf;
+ CMStringW wszFileName;
+ if (!PathIsAbsoluteW(blob.getName())) {
+ wchar_t buf[MAX_PATH];
+ File::GetReceivedFolder(hContact, buf, _countof(buf));
+ wszFileName = buf;
+ }
wszFileName.Append(blob.getName());
wszFileName.Replace('\\', '/');