Render messages received by /messages on demand
This commit is contained in:
parent
992332adf7
commit
b1f232bf86
2 changed files with 66 additions and 33 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue