summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-03-27 21:07:39 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-03-27 21:07:39 +0300
commit0a09ce0f7546a040c6c69a0cfe3b2221ed5a9685 (patch)
treeba26930544e1dd30cb1a61d470325f033d097687 /include
parentFix invite button colors on the system theme (diff)
downloadnheko-0a09ce0f7546a040c6c69a0cfe3b2221ed5a9685.tar.xz
Update first & last sender after message deletion
fixes #282
Diffstat (limited to 'include')
-rw-r--r--include/timeline/TimelineView.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/timeline/TimelineView.h b/include/timeline/TimelineView.h

index bec23cca..b38d6a7d 100644 --- a/include/timeline/TimelineView.h +++ b/include/timeline/TimelineView.h
@@ -154,8 +154,11 @@ private: TimelineEvent findFirstViewableEvent(const std::vector<TimelineEvent> &events); TimelineEvent findLastViewableEvent(const std::vector<TimelineEvent> &events); + //! Mark the last event as read. void readLastEvent() const; + //! Whether or not the scrollbar is visible (non-zero height). bool isScrollbarActivated() { return scroll_area_->verticalScrollBar()->value() != 0; } + //! Retrieve the event id of the last item. QString getLastEventId() const; QString getEventSender(const mtx::events::collections::TimelineEvents &event) const; mtx::events::EventType getEventType(