summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-03-18 13:29:21 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-03-18 13:29:21 +0200
commitfef7cd5b8378a73de686688eb136faeb6246feb0 (patch)
tree2ac62b77c3c915cc29ab35078c987cfbb3d21e5b /include
parentRemove redacted events from other users (#171) (diff)
downloadnheko-fef7cd5b8378a73de686688eb136faeb6246feb0.tar.xz
Don't count m.room.member or m.room.reaction events as viewable
Diffstat (limited to 'include')
-rw-r--r--include/timeline/TimelineView.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/timeline/TimelineView.h b/include/timeline/TimelineView.h

index 78000a16..bec23cca 100644 --- a/include/timeline/TimelineView.h +++ b/include/timeline/TimelineView.h
@@ -150,10 +150,16 @@ private: void updateLastSender(const QString &user_id, TimelineDirection direction); void notifyForLastEvent(); void notifyForLastEvent(const TimelineEvent &event); + + TimelineEvent findFirstViewableEvent(const std::vector<TimelineEvent> &events); + TimelineEvent findLastViewableEvent(const std::vector<TimelineEvent> &events); + void readLastEvent() const; bool isScrollbarActivated() { return scroll_area_->verticalScrollBar()->value() != 0; } QString getLastEventId() const; QString getEventSender(const mtx::events::collections::TimelineEvents &event) const; + mtx::events::EventType getEventType( + const mtx::events::collections::TimelineEvents &event) const; template<class Event, class Widget> TimelineItem *processMessageEvent(const Event &event, TimelineDirection direction);