mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-11 04:27:40 +01:00
Move check down
This commit is contained in:
parent
3fecce6fe6
commit
7ad73bb453
@ -267,7 +267,7 @@ export class Timeline {
|
|||||||
_updateEntriesFetchedFromHomeserver(entries) {
|
_updateEntriesFetchedFromHomeserver(entries) {
|
||||||
for (const entry of entries) {
|
for (const entry of entries) {
|
||||||
const relatedEntry = this._contextEntriesNotInTimeline.get(entry.relatedEventId);
|
const relatedEntry = this._contextEntriesNotInTimeline.get(entry.relatedEventId);
|
||||||
if (!relatedEntry || !relatedEntry.isNonPersisted) {
|
if (!relatedEntry) {
|
||||||
/**
|
/**
|
||||||
* Updates for entries in timeline is handled by remoteEntries observable collection
|
* Updates for entries in timeline is handled by remoteEntries observable collection
|
||||||
* Updates for entries not in timeline but fetched from storage is handled in this.replaceEntries()
|
* Updates for entries not in timeline but fetched from storage is handled in this.replaceEntries()
|
||||||
@ -294,7 +294,7 @@ export class Timeline {
|
|||||||
* @returns a new entry or undefined
|
* @returns a new entry or undefined
|
||||||
*/
|
*/
|
||||||
_createEntryFromRelatedEntries(entry, relatedEntry) {
|
_createEntryFromRelatedEntries(entry, relatedEntry) {
|
||||||
if (entry.isRedaction) {
|
if (entry.isRedaction && relatedEntry.isNonPersisted) {
|
||||||
const newEntry = relatedEntry.clone();
|
const newEntry = relatedEntry.clone();
|
||||||
newEntry.redact(entry);
|
newEntry.redact(entry);
|
||||||
return newEntry;
|
return newEntry;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user