diff options
Diffstat (limited to 'plugins/NewStory/src/history_array.cpp')
-rw-r--r-- | plugins/NewStory/src/history_array.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp index f1770c6cab..5ffc175cff 100644 --- a/plugins/NewStory/src/history_array.cpp +++ b/plugins/NewStory/src/history_array.cpp @@ -128,6 +128,17 @@ void HistoryArray::clear() iLastPageCounter = 0; } +void HistoryArray::addChatEvent(MCONTACT hContact, LOGINFO *pEvent) +{ + auto &p = allocateItem(); + p.hContact = hContact; + p.wtext = mir_wstrdup(pEvent->ptszText); + p.dbeOk = true; + p.dbe.pBlob = (BYTE *)p.wtext; + p.dbe.eventType = EVENTTYPE_MESSAGE; + p.dbe.timestamp = pEvent->time; +} + bool HistoryArray::addEvent(MCONTACT hContact, MEVENT hEvent, int count, ItemData::EventLoadMode mode) { if (count == -1) |