summary refs log tree commit diff
path: root/src/timeline2/TimelineModel.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2019-09-18 23:37:30 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2019-11-23 20:06:14 +0100
commitd34067a25792b5d69b2ce3192486189f0db12abb (patch)
treedf9f7f10a8a860f43442192334ee2c02a741b3f5 /src/timeline2/TimelineModel.h
parentAdd send/received indicator (diff)
downloadnheko-d34067a25792b5d69b2ce3192486189f0db12abb.tar.xz
Enable read receipts action and sync read receipts from cache
Diffstat (limited to 'src/timeline2/TimelineModel.h')
-rw-r--r--src/timeline2/TimelineModel.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/timeline2/TimelineModel.h b/src/timeline2/TimelineModel.h

index b651708d..2cd22661 100644 --- a/src/timeline2/TimelineModel.h +++ b/src/timeline2/TimelineModel.h
@@ -131,6 +131,7 @@ public: Q_INVOKABLE QString escapeEmoji(QString str) const; Q_INVOKABLE void viewRawMessage(QString id) const; Q_INVOKABLE void replyAction(QString id); + Q_INVOKABLE void readReceiptsAction(QString id) const; Q_INVOKABLE int idToIndex(QString id) const; Q_INVOKABLE QString indexToId(int index) const; @@ -146,10 +147,10 @@ public slots: emit currentIndexChanged(index); } int currentIndex() const { return idToIndex(currentId); } + void markEventsAsRead(const std::vector<QString> &event_ids); private slots: // Add old events at the top of the timeline. - void addBackwardsEvents(const mtx::responses::Messages &msgs); signals: @@ -165,7 +166,7 @@ private: const std::vector<mtx::events::collections::TimelineEvents> &timeline); QHash<QString, mtx::events::collections::TimelineEvents> events; - QSet<QString> pending, failed; + QSet<QString> pending, failed, read; std::vector<QString> eventOrder; QString room_id_;