Add rxjs/recommend eslint rules (#2724)

We will probably want to tweak these as we get more used to them.
This commit is contained in:
Hugh Nimmo-Smith
2024-11-06 14:33:06 +00:00
committed by GitHub
parent c45f724279
commit 7fd344385d
5 changed files with 290 additions and 32 deletions

View File

@@ -245,7 +245,10 @@ abstract class BaseMediaViewModel extends ViewModel {
encryptionSystem.kind !== E2eeType.NONE &&
(a.publication?.isEncrypted === false ||
v.publication?.isEncrypted === false),
).pipe(distinctUntilChanged(), shareReplay(1));
).pipe(
distinctUntilChanged(),
shareReplay({ bufferSize: 1, refCount: false }),
);
if (participant.isLocal || encryptionSystem.kind === E2eeType.NONE) {
this.encryptionStatus = of(EncryptionStatus.Okay).pipe(