Don't delete uncached messages after edit

fixes #1469
This commit is contained in:
Nicolas Werner 2023-06-01 21:26:02 +02:00
parent 1994ea634e
commit 76bf255d4b
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -264,7 +264,8 @@ EventStore::EventStore(std::string room_id, QObject *)
auto idx = idToIndex(pending_event_id); auto idx = idToIndex(pending_event_id);
events_by_id_.remove({room_id_, pending_event_id}); events_by_id_.remove({room_id_, pending_event_id});
events_.remove({room_id_, toInternalIdx(*idx)}); if (idx)
events_.remove({room_id_, toInternalIdx(*idx)});
} }
} }