Fix start voice broadcast recording while listening (#9630)
This commit is contained in:
parent
dd91250111
commit
459df4583e
11 changed files with 135 additions and 40 deletions
|
@ -18,6 +18,7 @@ import { MatrixClient, Room, RoomMember } from "matrix-js-sdk/src/matrix";
|
|||
import { TypedEventEmitter } from "matrix-js-sdk/src/models/typed-event-emitter";
|
||||
|
||||
import { IDestroyable } from "../../utils/IDestroyable";
|
||||
import { VoiceBroadcastPlaybacksStore } from "../stores/VoiceBroadcastPlaybacksStore";
|
||||
import { VoiceBroadcastRecordingsStore } from "../stores/VoiceBroadcastRecordingsStore";
|
||||
import { startNewVoiceBroadcastRecording } from "../utils/startNewVoiceBroadcastRecording";
|
||||
|
||||
|
@ -34,6 +35,7 @@ export class VoiceBroadcastPreRecording
|
|||
public room: Room,
|
||||
public sender: RoomMember,
|
||||
private client: MatrixClient,
|
||||
private playbacksStore: VoiceBroadcastPlaybacksStore,
|
||||
private recordingsStore: VoiceBroadcastRecordingsStore,
|
||||
) {
|
||||
super();
|
||||
|
@ -43,6 +45,7 @@ export class VoiceBroadcastPreRecording
|
|||
await startNewVoiceBroadcastRecording(
|
||||
this.room,
|
||||
this.client,
|
||||
this.playbacksStore,
|
||||
this.recordingsStore,
|
||||
);
|
||||
this.emit("dismiss", this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue