Generalise VoiceRecording (#9304)

This commit is contained in:
Michael Weimann 2022-09-21 18:46:28 +02:00 committed by GitHub
parent 71cf9bf932
commit c182c1c706
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 422 additions and 103 deletions

View file

@ -49,7 +49,7 @@ import MatrixClientBackedSettingsHandler from "../../src/settings/handlers/Matri
* the react context, we can get rid of this and just inject a test client
* via the context instead.
*/
export function stubClient() {
export function stubClient(): MatrixClient {
const client = createTestClient();
// stub out the methods in MatrixClientPeg
@ -63,6 +63,7 @@ export function stubClient() {
// fast stub function rather than a sinon stub
peg.get = function() { return client; };
MatrixClientBackedSettingsHandler.matrixClient = client;
return client;
}
/**