Prevent starting another voice broadcast (#9457)
This commit is contained in:
parent
13fbd096b0
commit
8066b9ffbe
3 changed files with 49 additions and 2 deletions
|
@ -113,6 +113,11 @@ export const startNewVoiceBroadcastRecording = async (
|
|||
client: MatrixClient,
|
||||
recordingsStore: VoiceBroadcastRecordingsStore,
|
||||
): Promise<VoiceBroadcastRecording | null> => {
|
||||
if (recordingsStore.getCurrent()) {
|
||||
showAlreadyRecordingDialog();
|
||||
return null;
|
||||
}
|
||||
|
||||
const currentUserId = client.getUserId();
|
||||
|
||||
if (!room.currentState.maySendStateEvent(VoiceBroadcastInfoEventType, currentUserId)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue