diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-06-01 21:26:02 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-06-01 21:26:02 +0200 |
commit | 76bf255d4b8879ac8739311d35dba647dd4736d2 (patch) | |
tree | 798bd629008ac4fe3198e9334dad2831df4acbd1 /src | |
parent | Show custom reactions in reaction history (diff) | |
download | nheko-76bf255d4b8879ac8739311d35dba647dd4736d2.tar.xz |
Don't delete uncached messages after edit
fixes #1469
Diffstat (limited to 'src')
-rw-r--r-- | src/timeline/EventStore.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/timeline/EventStore.cpp b/src/timeline/EventStore.cpp index 84b6dcd4..5cdb372a 100644 --- a/src/timeline/EventStore.cpp +++ b/src/timeline/EventStore.cpp @@ -264,7 +264,8 @@ EventStore::EventStore(std::string room_id, QObject *) auto idx = idToIndex(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)}); } } |