mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-11 12:37:22 +01:00
Rename variable
Signed-off-by: RMidhunSuresh <hi@midhun.dev>
This commit is contained in:
parent
345560ed97
commit
20616f5983
@ -51,15 +51,15 @@ export class TimelineViewModel extends ViewModel {
|
||||
|
||||
async watchForGapFill(gapPromise, gapTile) {
|
||||
let hasSeenUpdate = false;
|
||||
const func = (idx, tile) => {
|
||||
const checkForUpdate = (idx, tile) => {
|
||||
if (tile.shape !== "gap") {
|
||||
hasSeenUpdate = true;
|
||||
}
|
||||
}
|
||||
const subscription = {
|
||||
onAdd: (idx, tile) => func(idx, tile),
|
||||
onUpdate: (idx, tile) => func(idx, tile),
|
||||
onRemove: (idx, tile) => func(idx, tile)
|
||||
onAdd: (idx, tile) => checkForUpdate(idx, tile),
|
||||
onUpdate: (idx, tile) => checkForUpdate(idx, tile),
|
||||
onRemove: (idx, tile) => checkForUpdate(idx, tile)
|
||||
};
|
||||
this.tiles.subscribe(subscription);
|
||||
const gapResult = await gapPromise;
|
||||
|
Loading…
x
Reference in New Issue
Block a user