summaryrefslogtreecommitdiff
path: root/plugins/ExternalAPI
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-09-13 22:28:47 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-09-13 22:28:47 +0300
commit6379adc8ad721692e934589bf0d1532ef82a8139 (patch)
tree895a0ffd3a628b596e62e54046f6e168b4e49adc /plugins/ExternalAPI
parentccc539fdfad925e21361baf36ae0af5eb81b85b4 (diff)
fixes #4657 (NewStory: не отображается предпросмотр)
Diffstat (limited to 'plugins/ExternalAPI')
-rw-r--r--plugins/ExternalAPI/m_NewStory.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/ExternalAPI/m_NewStory.h b/plugins/ExternalAPI/m_NewStory.h
index 00bf7b6e44..ed019f42d9 100644
--- a/plugins/ExternalAPI/m_NewStory.h
+++ b/plugins/ExternalAPI/m_NewStory.h
@@ -68,6 +68,14 @@ __forceinline HGENMENU Menu_AddNewStoryMenuItem(TMO_MenuItem *pmi, int param)
}
/////////////////////////////////////////////////////////////////////////////////////////
+// service for refreshing downloaded files
+
+__forceinline void NS_NotifyFileReady(const wchar_t *pwszFileName)
+{
+ CallService("NewStory/FileReady", (WPARAM)pwszFileName, 0);
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
// event for changing NewStory menu items
// wparam = (MCONTACT)hContact - contact id
// lparam = (DB::EventInfo*)dbei - event