mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-11 04:27:40 +01:00
cleanup
This commit is contained in:
parent
cbee498d41
commit
a77ef02677
@ -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…
x
Reference in New Issue
Block a user