From d781cfdb76e0e81e0990208514e614d1b785d803 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 29 Apr 2020 18:59:21 +0300 Subject: fixes #2363 (NewStory: add ability to clear history for specified contact) --- plugins/NewStory/src/history_array.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins/NewStory/src/history_array.h') diff --git a/plugins/NewStory/src/history_array.h b/plugins/NewStory/src/history_array.h index ece447676d..50e6fb1c97 100644 --- a/plugins/NewStory/src/history_array.h +++ b/plugins/NewStory/src/history_array.h @@ -135,6 +135,11 @@ public: void addChatEvent(SESSION_INFO *si, LOGINFO *pEvent); void clear(); int getCount() const; + void reset() + { + clear(); + pages.insert(new ItemBlock()); + } // bool preloadEvents(int count = 10); -- cgit v1.2.3