Skip to content
Snippets Groups Projects
Verified Commit 12a6da01 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

If you replace the txn id, replace a string the length of the txn id...

parent df6a5aab
No related branches found
No related tags found
No related merge requests found
Pipeline #2756 passed
......@@ -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);
}
}
......
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