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
+1 -1
View File
@@ -18,7 +18,7 @@ import {
EventType, EventType,
RoomEvent as MatrixRoomEvent, RoomEvent as MatrixRoomEvent,
} from "matrix-js-sdk/src/matrix"; } from "matrix-js-sdk/src/matrix";
import { BehaviorSubject, delay, Subscription } from "rxjs"; import { BehaviorSubject, delay, type Subscription } from "rxjs";
import { import {
ElementCallReactionEventType, ElementCallReactionEventType,
-15
View File
@@ -1202,21 +1202,6 @@ export class CallViewModel extends ViewModel {
}), }),
this.scope.state(), 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( public readonly reactions$ = this.reactionsSubject$.pipe(
map((v) => map((v) =>