forked from mystiq/hydrogen-web
fix #483
This commit is contained in:
parent
cd900ab842
commit
6cec583661
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ export class RelationWriter {
|
||||||
|
|
||||||
async _reaggregateAnnotation(targetId, key, txn, log) {
|
async _reaggregateAnnotation(targetId, key, txn, log) {
|
||||||
const target = await txn.timelineEvents.getByEventId(this._roomId, targetId);
|
const target = await txn.timelineEvents.getByEventId(this._roomId, targetId);
|
||||||
if (!target) {
|
if (!target || !target.annotations) { // unknown or redacted event
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
log.set("id", targetId);
|
log.set("id", targetId);
|
||||||
|
|
Loading…
Reference in a new issue