summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history_array.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-09-05 12:34:11 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-09-05 12:34:11 +0300
commitf0919f5b6827a7965a89b287feee0693b3c7560b (patch)
tree460a853fea27bc4f787386a32715f3aea5188561 /plugins/NewStory/src/history_array.cpp
parentc2be50463ef2bf47f376bf9180f1aab81081c76d (diff)
fixes #3669 (NewStory: опция "группировать сообщения" группирует сообщения вместе с событиями входа в чат)
Diffstat (limited to 'plugins/NewStory/src/history_array.cpp')
-rw-r--r--plugins/NewStory/src/history_array.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp
index 2b2babe744..aaf1295707 100644
--- a/plugins/NewStory/src/history_array.cpp
+++ b/plugins/NewStory/src/history_array.cpp
@@ -103,6 +103,9 @@ ItemData* ItemData::checkPrev(ItemData *pPrev)
static bool isEqualGC(const ItemData *p1, const ItemData *p2)
{
+ if (p1->dbe.eventType != p2->dbe.eventType)
+ return false;
+
if (!p1->wszNick || !p2->wszNick)
return false;
@@ -382,7 +385,7 @@ void HistoryArray::addChatEvent(SESSION_INFO *si, const LOGINFO *lin)
if (si == nullptr)
return;
- if (lin->hEvent) {
+ if (si->pMI->bDatabase && lin->hEvent) {
addEvent(si->hContact, lin->hEvent, 1);
return;
}