Extract useVoiceBroadcastRecording hook (#9406)
* Extract useVoiceBroadcastRecording hook * Trigger CI
This commit is contained in:
parent
1800cb8c71
commit
7a1c47a23e
9 changed files with 192 additions and 185 deletions
|
@ -50,6 +50,13 @@ export class VoiceBroadcastRecordingsStore extends TypedEventEmitter<VoiceBroadc
|
|||
return this.current;
|
||||
}
|
||||
|
||||
public clearCurrent(): void {
|
||||
if (this.current === null) return;
|
||||
|
||||
this.current = null;
|
||||
this.emit(VoiceBroadcastRecordingsStoreEvent.CurrentChanged, null);
|
||||
}
|
||||
|
||||
public getByInfoEvent(infoEvent: MatrixEvent, client: MatrixClient): VoiceBroadcastRecording {
|
||||
const infoEventId = infoEvent.getId();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue