summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history_array.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-04-29 18:59:21 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-04-29 18:59:21 +0300
commitd781cfdb76e0e81e0990208514e614d1b785d803 (patch)
tree36c0857fb8645307736c7039654f5e34e6ee634d /plugins/NewStory/src/history_array.h
parent314930f98aac1dd2c482ff3b79d4810142dc25f9 (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.h5
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);