summary refs log tree commit diff
path: root/src/timeline/EventStore.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-03-05 19:38:13 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2022-03-05 19:38:13 +0100
commit12a6da012a591950278b40d614e035031adc7f08 (patch)
tree5989db4edd8bc98ff33a2161c6bbfb24106f7c8d /src/timeline/EventStore.cpp
parentFix clicking on images in replies (diff)
downloadnheko-12a6da012a591950278b40d614e035031adc7f08.tar.xz
If you replace the txn id, replace a string the length of the txn id...
Diffstat (limited to 'src/timeline/EventStore.cpp')
-rw-r--r--src/timeline/EventStore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeline/EventStore.cpp b/src/timeline/EventStore.cpp

index 4151356f..1293245c 100644 --- a/src/timeline/EventStore.cpp +++ b/src/timeline/EventStore.cpp
@@ -208,7 +208,7 @@ EventStore::EventStore(std::string room_id, QObject *) size_t index = related_text->content.formatted_body.find(txn_id); if (index != std::string::npos) { related_text->content.formatted_body.replace( - index, event_id.length(), event_id); + index, txn_id.length(), event_id); } }