summary refs log tree commit diff
path: root/src/timeline/TimelineModel.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-03-03 17:42:36 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-03-03 17:42:41 +0100
commit67ab20405000c4f00cfa0280cdbf8a3342973f9a (patch)
treee4d666a2626d61ac61da6a234120f121def820f1 /src/timeline/TimelineModel.cpp
parentMerge pull request #504 from Nheko-Reborn/new-lmdbxx (diff)
downloadnheko-67ab20405000c4f00cfa0280cdbf8a3342973f9a.tar.xz
Fix reply relating to the wrong id of edited event
Diffstat (limited to '')
-rw-r--r--src/timeline/TimelineModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp
index d46a313a..3b1bbd6c 100644
--- a/src/timeline/TimelineModel.cpp
+++ b/src/timeline/TimelineModel.cpp
@@ -867,7 +867,7 @@ TimelineModel::relatedInfo(QString id)
 
         RelatedInfo related   = {};
         related.quoted_user   = QString::fromStdString(mtx::accessors::sender(*event));
-        related.related_event = mtx::accessors::event_id(*event);
+        related.related_event = id.toStdString();
         related.type          = mtx::accessors::msg_type(*event);
 
         // get body, strip reply fallback, then transform the event to text, if it is a media event