mirror of
https://github.com/vector-im/element-call.git
synced 2026-10-07 23:15:50 +00:00
tidy tidy
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user