mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-11 12:37:22 +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);
|
||||
const gapResult = await gapPromise;
|
||||
this.tiles.unsubscribe(subscription);
|
||||
if (!gapResult) {
|
||||
return;
|
||||
}
|
||||
this.tiles.unsubscribe(subscription);
|
||||
if (!hasSeenUpdate) {
|
||||
this.watchForGapFill(gapTile.notifyVisible(), gapTile);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user