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

pull/976/head
Nicolas Werner 3 years ago
parent df6a5aabb6
commit 12a6da012a
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 2
      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);
}
}

Loading…
Cancel
Save