mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-11 20:47:18 +01:00
Remove leak
Signed-off-by: RMidhunSuresh <hi@midhun.dev>
This commit is contained in:
parent
ebafd8c42b
commit
177ef43ebf
@ -63,10 +63,10 @@ export class TimelineViewModel extends ViewModel {
|
|||||||
};
|
};
|
||||||
this.tiles.subscribe(subscription);
|
this.tiles.subscribe(subscription);
|
||||||
const gapResult = await gapPromise;
|
const gapResult = await gapPromise;
|
||||||
|
this.tiles.unsubscribe(subscription);
|
||||||
if (!gapResult) {
|
if (!gapResult) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.tiles.unsubscribe(subscription);
|
|
||||||
if (!hasSeenUpdate) {
|
if (!hasSeenUpdate) {
|
||||||
this.watchForGapFill(gapTile.notifyVisible(), gapTile);
|
this.watchForGapFill(gapTile.notifyVisible(), gapTile);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user