summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-09-05 12:17:09 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-09-05 12:17:09 +0300
commitc2be50463ef2bf47f376bf9180f1aab81081c76d (patch)
tree0650925b7001ab963d91d96945e8f8def84da607 /plugins
parent78d6b64ff4127e284a667f6ab5341050a78f3f38 (diff)
NewStory: fix for offline files in the database-hosted group chats
Diffstat (limited to 'plugins')
-rw-r--r--plugins/NewStory/src/history_array.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp
index 6d49365e01..2b2babe744 100644
--- a/plugins/NewStory/src/history_array.cpp
+++ b/plugins/NewStory/src/history_array.cpp
@@ -382,6 +382,11 @@ void HistoryArray::addChatEvent(SESSION_INFO *si, const LOGINFO *lin)
if (si == nullptr)
return;
+ if (lin->hEvent) {
+ addEvent(si->hContact, lin->hEvent, 1);
+ return;
+ }
+
CMStringW wszText;
bool bTextUsed = Chat_GetDefaultEventDescr(si, lin, wszText);
if (!bTextUsed && lin->ptszText) {