Update src/voice/VoiceRecording.ts

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Travis Ralston 2021-06-28 01:22:05 -06:00 committed by GitHub
parent b5bb767b8f
commit c16228b8ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -373,7 +373,7 @@ export class VoiceRecording extends EventEmitter implements IDestroyable {
const { url: mxc, file: encrypted } = await uploadFile(this.client, inRoomId, new Blob([this.audioBuffer], { const { url: mxc, file: encrypted } = await uploadFile(this.client, inRoomId, new Blob([this.audioBuffer], {
type: this.contentType, type: this.contentType,
})); }));
this.lastUpload = {mxc, encrypted}; this.lastUpload = { mxc, encrypted };
this.emit(RecordingState.Uploaded); this.emit(RecordingState.Uploaded);
return this.lastUpload; return this.lastUpload;
} }