summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-01-05 15:28:38 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-01-05 15:28:38 +0200
commit953634c9b5942d7c02c81484252ceb2a61e2ab57 (patch)
tree57debb477c207518593ea14e2c096ae7c7be0d01 /src
parentCreate widgets on demand for messages added to the end of the timeline (diff)
downloadnheko-953634c9b5942d7c02c81484252ceb2a61e2ab57.tar.xz
Enable read receipts on messages sent through nheko
Diffstat (limited to 'src')
-rw-r--r--src/timeline/TimelineView.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/timeline/TimelineView.cc b/src/timeline/TimelineView.cc

index 3c8b3604..d21f30f0 100644 --- a/src/timeline/TimelineView.cc +++ b/src/timeline/TimelineView.cc
@@ -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 auto msg = pending_msgs_.dequeue(); msg.event_id = event_id; + + if (msg.widget) + msg.widget->setEventId(event_id); + pending_sent_msgs_.append(msg); }