Merge pull request #4040 from element-hq/scope-leak-lint

Add lint rule to prevent ObservableScope resource leaks
This commit is contained in:
Robin
2026-06-22 11:13:10 +02:00
committed by GitHub
9 changed files with 148 additions and 130 deletions

View File

@@ -161,6 +161,10 @@ export function createCallNotificationLifecycle$({
recipient,
outcome$: race(timeout$, accept$, decline$).pipe(
take(1),
// Make this observable 'hot' to avoid running multiple timers. This
// is not actually a resource leak since there will be at most one
// active ring attempt at any given time.
// eslint-disable-next-line element-call/no-observablescope-leak
scope.share,
),
});