From 6cec583661b60746bb6caea0fe2d0331769b33b3 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 1 Sep 2021 14:21:21 +0200 Subject: [PATCH] fix #483 --- src/matrix/room/timeline/persistence/RelationWriter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/room/timeline/persistence/RelationWriter.js b/src/matrix/room/timeline/persistence/RelationWriter.js index afc99e6d..4116b775 100644 --- a/src/matrix/room/timeline/persistence/RelationWriter.js +++ b/src/matrix/room/timeline/persistence/RelationWriter.js @@ -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);