mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Merge pull request #484 from vector-im/bwindels/fix-483
Ignore redacting reactions on already redacted events
This commit is contained in:
commit
27db00ab98
@ -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 New Issue
Block a user