tidy tidy

This commit is contained in:
Half-Shot
2024-12-19 15:53:03 +00:00
parent 20f2ca4afe
commit 15c2dd1754
2 changed files with 1 additions and 16 deletions

View File

@@ -18,7 +18,7 @@ import {
EventType,
RoomEvent as MatrixRoomEvent,
} from "matrix-js-sdk/src/matrix";
import { BehaviorSubject, delay, Subscription } from "rxjs";
import { BehaviorSubject, delay, type Subscription } from "rxjs";
import {
ElementCallReactionEventType,

View File

@@ -1202,21 +1202,6 @@ export class CallViewModel extends ViewModel {
}),
this.scope.state(),
);
/**
* Emits an event every time a new screenshare is started in
* the call.
*/
public readonly newScreenShare$ = this.screenShares$.pipe(
map((v) => v.length),
scan(
(acc, newValue) => ({
value: newValue,
playSounds: newValue > acc.value,
}),
{ value: 0, playSounds: false },
),
filter((v) => v.playSounds),
);
public readonly reactions$ = this.reactionsSubject$.pipe(
map((v) =>