Skip to content
Snippets Groups Projects
Commit 953634c9 authored by Konstantinos Sideris's avatar Konstantinos Sideris
Browse files

Enable read receipts on messages sent through nheko

parent 983aea7c
No related branches found
No related tags found
No related merge requests found
...@@ -83,6 +83,7 @@ public: ...@@ -83,6 +83,7 @@ public:
void setUserAvatar(const QImage &pixmap); void setUserAvatar(const QImage &pixmap);
DescInfo descriptionMessage() const { return descriptionMsg_; } DescInfo descriptionMessage() const { return descriptionMsg_; }
QString eventId() const { return event_id_; } QString eventId() const { return event_id_; }
void setEventId(const QString &event_id) { event_id_ = event_id; }
~TimelineItem(); ~TimelineItem();
......
...@@ -460,6 +460,10 @@ TimelineView::updatePendingMessage(int txn_id, QString event_id) ...@@ -460,6 +460,10 @@ TimelineView::updatePendingMessage(int txn_id, QString event_id)
pending_msgs_.head().txn_id == txn_id) { // We haven't received it yet pending_msgs_.head().txn_id == txn_id) { // We haven't received it yet
auto msg = pending_msgs_.dequeue(); auto msg = pending_msgs_.dequeue();
msg.event_id = event_id; msg.event_id = event_id;
if (msg.widget)
msg.widget->setEventId(event_id);
pending_sent_msgs_.append(msg); pending_sent_msgs_.append(msg);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment