From ac719164dbdbc142e15bebc0813d781d0e61b44c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 1 Sep 2023 14:46:07 +0300 Subject: NewStory: group chat's topic to be drawn as "other" --- plugins/NewStory/src/history_array.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp index be26830325..6d49365e01 100644 --- a/plugins/NewStory/src/history_array.cpp +++ b/plugins/NewStory/src/history_array.cpp @@ -400,7 +400,6 @@ void HistoryArray::addChatEvent(SESSION_INFO *si, const LOGINFO *lin) switch (lin->iType) { case GC_EVENT_MESSAGE: - case GC_EVENT_TOPIC: case GC_EVENT_INFORMATION: p.dbe.eventType = EVENTTYPE_MESSAGE; if (lin->bIsMe) @@ -415,6 +414,11 @@ void HistoryArray::addChatEvent(SESSION_INFO *si, const LOGINFO *lin) p.dbe.flags |= DBEF_SENT; __fallthrough; + case GC_EVENT_PART: + case GC_EVENT_QUIT: + p.dbe.eventType = EVENTTYPE_JABBER_PRESENCE; + break; + default: p.dbe.eventType = EVENTTYPE_OTHER; break; -- cgit v1.2.3