summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-01-30 12:56:01 -0700
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-01-30 12:56:01 -0700
commitb1f232bf862ca9aeedeb20e47c673411ef0bb05f (patch)
treef2d41369ae3642124f1316ac62c3b130dbd24c59 /include
parentUpdate user avatars in place (diff)
downloadnheko-b1f232bf862ca9aeedeb20e47c673411ef0bb05f.tar.xz
Render messages received by `/messages` on demand
Diffstat (limited to 'include')
-rw-r--r--include/timeline/TimelineView.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/timeline/TimelineView.h b/include/timeline/TimelineView.h

index 43a23b6a..f771a236 100644 --- a/include/timeline/TimelineView.h +++ b/include/timeline/TimelineView.h
@@ -211,9 +211,13 @@ private: //! Messages received by sync not added to the timeline. std::vector<TimelineEvent> bottomMessages_; + //! Messages received by /messages not added to the timeline. + std::vector<TimelineEvent> topMessages_; //! Render the given timeline events to the bottom of the timeline. void renderBottomEvents(const std::vector<TimelineEvent> &events); + //! Render the given timeline events to the top of the timeline. + void renderTopEvents(const std::vector<TimelineEvent> &events); //! Decide if the given timeline event can be rendered. inline bool isViewable(const TimelineEvent &event) const;