mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
If you replace the txn id, replace a string the length of the txn id...
This commit is contained in:
parent
df6a5aabb6
commit
12a6da012a
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ EventStore::EventStore(std::string room_id, QObject *)
|
||||||
size_t index = related_text->content.formatted_body.find(txn_id);
|
size_t index = related_text->content.formatted_body.find(txn_id);
|
||||||
if (index != std::string::npos) {
|
if (index != std::string::npos) {
|
||||||
related_text->content.formatted_body.replace(
|
related_text->content.formatted_body.replace(
|
||||||
index, event_id.length(), event_id);
|
index, txn_id.length(), event_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue