mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-11 04:27:40 +01:00
Add new fragment to list of updated fragment list
This commit is contained in:
parent
021844bf0a
commit
3ce2d0777d
@ -257,6 +257,10 @@ export class GapWriter {
|
||||
startFill.entries.push(...endFill.entries);
|
||||
startFill.updatedEntries.push(...endFill.updatedEntries);
|
||||
startFill.fragments.push(...endFill.fragments);
|
||||
if (!startFill.fragments.includes(newFragment)) {
|
||||
// We created the fragment so it is updated.
|
||||
startFill.fragments.push(newFragment);
|
||||
}
|
||||
return startFill;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user