1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-25 17:02:04 +03:00

Clear Lifecycle.RtsClient on MatrixChat.mount

- otherwise it ends up sitting around and failing later tests.
This commit is contained in:
Richard van der Hoff
2017-06-15 02:15:13 +01:00
parent 9ff52b182f
commit 65f351ff22
2 changed files with 7 additions and 6 deletions

View File

@ -265,7 +265,11 @@ function _handleRestoreFailure(e) {
let rtsClient = null;
export function initRtsClient(url) {
rtsClient = new RtsClient(url);
if (url) {
rtsClient = new RtsClient(url);
} else {
rtsClient = null;
}
}
/**