Render messages received by /messages on demand

This commit is contained in:
Konstantinos Sideris 2018-01-30 12:56:01 -07:00
parent 992332adf7
commit b1f232bf86
2 changed files with 66 additions and 33 deletions

View file

@ -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;