Remove test function

This commit is contained in:
Travis Ralston 2021-03-16 23:44:39 -06:00
parent 9aa5348c7f
commit 1dc2427128

View file

@ -18,7 +18,6 @@ import * as Recorder from 'opus-recorder';
import encoderPath from 'opus-recorder/dist/encoderWorker.min.js'; import encoderPath from 'opus-recorder/dist/encoderWorker.min.js';
import {MatrixClient} from "matrix-js-sdk/src/client"; import {MatrixClient} from "matrix-js-sdk/src/client";
import CallMediaHandler from "../CallMediaHandler"; import CallMediaHandler from "../CallMediaHandler";
import {sleep} from "../utils/promise";
import {SimpleObservable} from "matrix-widget-api"; import {SimpleObservable} from "matrix-widget-api";
export class VoiceRecorder { export class VoiceRecorder {
@ -110,19 +109,6 @@ export class VoiceRecorder {
}).then(r => r['content_uri']); }).then(r => r['content_uri']);
return this.mxc; 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; window.mxVoiceRecorder = VoiceRecorder;