diff --git a/src/reactions/ReactionsReader.ts b/src/reactions/ReactionsReader.ts index 790f5adac..c0c1009dc 100644 --- a/src/reactions/ReactionsReader.ts +++ b/src/reactions/ReactionsReader.ts @@ -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, diff --git a/src/state/CallViewModel.ts b/src/state/CallViewModel.ts index 49b2416b9..0c3b80db3 100644 --- a/src/state/CallViewModel.ts +++ b/src/state/CallViewModel.ts @@ -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) =>