You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
Pause voice broadcast on calls (#9623)
This commit is contained in:
@ -89,7 +89,7 @@ describe("StopGapWidget", () => {
|
||||
content: {},
|
||||
});
|
||||
voiceBroadcastRecording = new VoiceBroadcastRecording(voiceBroadcastInfoEvent, client);
|
||||
jest.spyOn(voiceBroadcastRecording, "stop");
|
||||
jest.spyOn(voiceBroadcastRecording, "pause");
|
||||
jest.spyOn(VoiceBroadcastRecordingsStore.instance(), "getCurrent").mockReturnValue(voiceBroadcastRecording);
|
||||
});
|
||||
|
||||
@ -105,8 +105,8 @@ describe("StopGapWidget", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("should stop the current voice broadcast recording", () => {
|
||||
expect(voiceBroadcastRecording.stop).toHaveBeenCalled();
|
||||
it("should pause the current voice broadcast recording", () => {
|
||||
expect(voiceBroadcastRecording.pause).toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user