forked from mystiq/hydrogen-web
cleanup
This commit is contained in:
parent
cbee498d41
commit
a77ef02677
1 changed files with 3 additions and 7 deletions
|
@ -212,17 +212,13 @@ export class Timeline {
|
|||
// this will work because we set relatedEventId when removing remote echos
|
||||
if (pee.relatedEventId) {
|
||||
const relationTarget = entries.find(e => e.id === pee.relatedEventId);
|
||||
if (relationTarget) {
|
||||
// no need to emit here as this entry is about to be added
|
||||
relationTarget.addLocalRelation(pee);
|
||||
}
|
||||
// no need to emit here as this entry is about to be added
|
||||
relationTarget?.addLocalRelation(pee);
|
||||
}
|
||||
if (pee.redactingEntry) {
|
||||
const eventId = pee.redactingEntry.relatedEventId;
|
||||
const relationTarget = entries.find(e => e.id === eventId);
|
||||
if (relationTarget) {
|
||||
relationTarget.addLocalRelation(pee);
|
||||
}
|
||||
relationTarget?.addLocalRelation(pee);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue