fixup! Allow editing unsent messages

This commit is contained in:
Alexander Bantyev 2021-06-19 23:26:21 +03:00
parent 42bf8799ee
commit 358a39e6d2
No known key found for this signature in database
GPG key ID: E081FF12ADCB4AD5
2 changed files with 7 additions and 1 deletions

View file

@ -375,6 +375,8 @@ TimelineModel::TimelineModel(TimelineViewManager *manager, QString room_id, QObj
connect(&events, &EventStore::updateFlowEventId, this, [this](std::string event_id) {
this->updateFlowEventId(event_id);
});
// When a message is sent, check if the current edit/reply relates to that message,
// and update the event_id so that it points to the sent message and not the pending one.
connect(&events,
&EventStore::messageSent,
this,