diff --git a/src/voice/VoiceRecorder.ts b/src/voice/VoiceRecorder.ts index 1e59e451bd..9080c35b91 100644 --- a/src/voice/VoiceRecorder.ts +++ b/src/voice/VoiceRecorder.ts @@ -18,7 +18,6 @@ import * as Recorder from 'opus-recorder'; import encoderPath from 'opus-recorder/dist/encoderWorker.min.js'; import {MatrixClient} from "matrix-js-sdk/src/client"; import CallMediaHandler from "../CallMediaHandler"; -import {sleep} from "../utils/promise"; import {SimpleObservable} from "matrix-widget-api"; export class VoiceRecorder { @@ -110,19 +109,6 @@ export class VoiceRecorder { }).then(r => r['content_uri']); return this.mxc; } - - // TODO: @@ TravisR: REMOVE - public async test() { - this.start() - .then(() => sleep(5000)) - .then(() => this.stop()) - .then(() => this.upload()) - .then(() => this.client.sendMessage("!HKjSnKDluFnCCnjayl:localhost", { - body: "Voice message", - msgtype: "m.audio", // TODO @@ - url: this.mxc, - })); - } } window.mxVoiceRecorder = VoiceRecorder;