Merge pull request #484 from vector-im/bwindels/fix-483

Ignore redacting reactions on already redacted events
This commit is contained in:
Bruno Windels 2021-09-01 14:23:13 +02:00 committed by GitHub
commit 27db00ab98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -191,7 +191,7 @@ export class RelationWriter {
async _reaggregateAnnotation(targetId, key, txn, log) {
const target = await txn.timelineEvents.getByEventId(this._roomId, targetId);
if (!target) {
if (!target || !target.annotations) { // unknown or redacted event
return null;
}
log.set("id", targetId);