diff options
author | George Hazan <ghazan@miranda.im> | 2020-04-29 18:59:21 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-04-29 18:59:21 +0300 |
commit | d781cfdb76e0e81e0990208514e614d1b785d803 (patch) | |
tree | 36c0857fb8645307736c7039654f5e34e6ee634d /plugins/NewStory/src/history_array.h | |
parent | 314930f98aac1dd2c482ff3b79d4810142dc25f9 (diff) |
fixes #2363 (NewStory: add ability to clear history for specified contact)
Diffstat (limited to 'plugins/NewStory/src/history_array.h')
-rw-r--r-- | plugins/NewStory/src/history_array.h | 5 |
1 files changed, 5 insertions, 0 deletions
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); |