diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-03-05 19:38:13 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-03-05 19:38:13 +0100 |
commit | 12a6da012a591950278b40d614e035031adc7f08 (patch) | |
tree | 5989db4edd8bc98ff33a2161c6bbfb24106f7c8d /src/timeline/EventStore.cpp | |
parent | Fix clicking on images in replies (diff) | |
download | nheko-12a6da012a591950278b40d614e035031adc7f08.tar.xz |
If you replace the txn id, replace a string the length of the txn id...
Diffstat (limited to '')
-rw-r--r-- | src/timeline/EventStore.cpp | 2 |
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); } } |