summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-10-30 20:32:54 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-10-30 20:32:54 +0300
commit6a495da1906284b770f1aceee892d7e60fe1582e (patch)
tree54008a421ef2b559002fc2069e08298aef7f367a /plugins
parent998bc5039e707b8c5bab36c3bb8bb80c82aeb1e3 (diff)
NewStory: code cleaning
Diffstat (limited to 'plugins')
-rw-r--r--plugins/NewStory/src/history_array.cpp7
1 files changed, 2 insertions, 5 deletions
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;