summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history_array.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NewStory/src/history_array.cpp')
-rw-r--r--plugins/NewStory/src/history_array.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp
index f622814d83..a47a54f5ba 100644
--- a/plugins/NewStory/src/history_array.cpp
+++ b/plugins/NewStory/src/history_array.cpp
@@ -94,6 +94,18 @@ void ItemData::load(bool bFullLoad)
wtext = mir_utf8decodeW((char *)dbe.pBlob);
break;
+ case EVENTTYPE_FILE:
+ wchar_t buf[MAX_PATH];
+ CallService(MS_FILE_GETRECEIVEDFILESFOLDERW, hContact, (LPARAM)buf);
+ {
+ CMStringW wszFileName(buf);
+ wszFileName.Append(ptrW(DbEvent_GetTextW(&dbe, CP_ACP)));
+ wszFileName.Replace('\\', '/');
+ wszFileName.Insert(0, L"file://");
+ wtext = wszFileName.Detach();
+ }
+ break;
+
default:
wtext = DbEvent_GetTextW(&dbe, CP_ACP);
break;