summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-06-17 02:29:19 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-06-17 02:29:19 +0300
commit66249ed12628b9bb5cf0603a627858d921e8b41a (patch)
tree7de52c68851a918b3aded214aa5fb9043032dafb /include
parentUpdate CI instructions (diff)
downloadnheko-66249ed12628b9bb5cf0603a627858d921e8b41a.tar.xz
Correctly mark received messages whose response came after /sync
Diffstat (limited to 'include')
-rw-r--r--include/timeline/TimelineItem.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/timeline/TimelineItem.h b/include/timeline/TimelineItem.h

index 6623a82c..f055f217 100644 --- a/include/timeline/TimelineItem.h +++ b/include/timeline/TimelineItem.h
@@ -193,6 +193,7 @@ public: QString eventId() const { return event_id_; } void setEventId(const QString &event_id) { event_id_ = event_id; } void markReceived(); + bool isReceived() { return isReceived_; }; void setRoomId(QString room_id) { room_id_ = room_id; } void sendReadReceipt() const; @@ -225,6 +226,10 @@ private: void setupAvatarLayout(const QString &userName); void setupSimpleLayout(); + //! Whether or not the event associated with the widget + //! has been acknowledged by the server. + bool isReceived_ = false; + QString replaceEmoji(const QString &body); QString event_id_; QString room_id_;