Skip to content

Commit

Permalink
tidy tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Dec 19, 2024
1 parent 20f2ca4 commit 15c2dd1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion src/reactions/ReactionsReader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
15 changes: 0 additions & 15 deletions src/state/CallViewModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down

0 comments on commit 15c2dd1

Please sign in to comment.