From 6a495da1906284b770f1aceee892d7e60fe1582e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 30 Oct 2023 20:32:54 +0300 Subject: NewStory: code cleaning --- plugins/NewStory/src/history_array.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'plugins') diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp index 744097d1d4..bffdfc944a 100644 --- a/plugins/NewStory/src/history_array.cpp +++ b/plugins/NewStory/src/history_array.cpp @@ -420,13 +420,13 @@ void HistoryArray::addChatEvent(SESSION_INFO *si, const LOGINFO *lin) p.m_bLoaded = true; p.m_bHighlighted = lin->bIsHighlighted; p.dbe.timestamp = lin->time; + if (lin->bIsMe) + p.dbe.flags |= DBEF_SENT; switch (lin->iType) { case GC_EVENT_MESSAGE: case GC_EVENT_INFORMATION: p.dbe.eventType = EVENTTYPE_MESSAGE; - if (lin->bIsMe) - p.dbe.flags |= DBEF_SENT; break; case GC_EVENT_SETCONTACTSTATUS: @@ -435,9 +435,6 @@ void HistoryArray::addChatEvent(SESSION_INFO *si, const LOGINFO *lin) case GC_EVENT_JOIN: case GC_EVENT_PART: - p.dbe.flags |= DBEF_SENT; - __fallthrough; - case GC_EVENT_QUIT: p.dbe.eventType = EVENTTYPE_JABBER_PRESENCE; break; -- cgit v1.2.3