Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 72d7939

Browse files
authored
Disable stopping a voice broadcast recording by click on the tile (#9436)
1 parent 631720b commit 72d7939

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

src/voice-broadcast/components/molecules/VoiceBroadcastRecordingBody.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,10 @@ export const VoiceBroadcastRecordingBody: React.FC<VoiceBroadcastRecordingBodyPr
2424
live,
2525
room,
2626
sender,
27-
stopRecording,
2827
} = useVoiceBroadcastRecording(recording);
2928

3029
return (
31-
<div
32-
className="mx_VoiceBroadcastRecordingBody"
33-
onClick={stopRecording}
34-
>
30+
<div className="mx_VoiceBroadcastRecordingBody">
3531
<VoiceBroadcastHeader
3632
live={live}
3733
sender={sender}

test/voice-broadcast/components/molecules/VoiceBroadcastRecordingBody-test.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,10 @@ limitations under the License.
1616

1717
import React from "react";
1818
import { render, RenderResult } from "@testing-library/react";
19-
import userEvent from "@testing-library/user-event";
2019
import { MatrixClient, MatrixEvent } from "matrix-js-sdk/src/matrix";
2120

2221
import {
2322
VoiceBroadcastInfoEventType,
24-
VoiceBroadcastInfoState,
2523
VoiceBroadcastRecording,
2624
VoiceBroadcastRecordingBody,
2725
} from "../../../../src/voice-broadcast";
@@ -64,16 +62,6 @@ describe("VoiceBroadcastRecordingBody", () => {
6462
it("should render the expected HTML", () => {
6563
expect(renderResult.container).toMatchSnapshot();
6664
});
67-
68-
describe("and clicked", () => {
69-
beforeEach(async () => {
70-
await userEvent.click(renderResult.getByText("My room"));
71-
});
72-
73-
it("should stop the recording", () => {
74-
expect(recording.getState()).toBe(VoiceBroadcastInfoState.Stopped);
75-
});
76-
});
7765
});
7866

7967
describe("when rendering a non-live broadcast", () => {

0 commit comments

Comments
 (0)