summary refs log tree commit diff
path: root/include/timeline
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-06-28 16:16:43 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-06-28 16:17:39 +0300
commit4344b6964f63921aa300112bc3b62fdbaa64866a (patch)
tree9fdcad21eada05c41b31acc37162b681a10af5f0 /include/timeline
parentUpgrade matrix-structs & mtxclient (diff)
downloadnheko-4344b6964f63921aa300112bc3b62fdbaa64866a.tar.xz
Save timeline messages in cache for faster startup times
Diffstat (limited to 'include/timeline')
-rw-r--r--include/timeline/TimelineView.h1
-rw-r--r--include/timeline/TimelineViewManager.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/timeline/TimelineView.h b/include/timeline/TimelineView.h
index bbe1dcad..7f1912ea 100644
--- a/include/timeline/TimelineView.h
+++ b/include/timeline/TimelineView.h
@@ -158,6 +158,7 @@ public:
 
         //! Remove an item from the timeline with the given Event ID.
         void removeEvent(const QString &event_id);
+        void setPrevBatchToken(const QString &token) { prev_batch_token_ = token; }
 
 public slots:
         void sliderRangeChanged(int min, int max);
diff --git a/include/timeline/TimelineViewManager.h b/include/timeline/TimelineViewManager.h
index 9e31ecbf..590adb2b 100644
--- a/include/timeline/TimelineViewManager.h
+++ b/include/timeline/TimelineViewManager.h
@@ -27,6 +27,7 @@ class QFile;
 class RoomInfoListItem;
 class TimelineView;
 struct DescInfo;
+struct SavedMessages;
 
 class TimelineViewManager : public QStackedWidget
 {
@@ -57,6 +58,7 @@ signals:
 
 public slots:
         void removeTimelineEvent(const QString &room_id, const QString &event_id);
+        void initWithMessages(const std::map<QString, mtx::responses::Timeline> &msgs);
 
         void setHistoryView(const QString &room_id);
         void queueTextMessage(const QString &msg);