Import createClient instead
This commit is contained in:
parent
32abfbbfc6
commit
855bf3ad0d
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Matrix, { SERVICE_TYPES } from 'matrix-js-sdk';
|
import { createClient, SERVICE_TYPES } from 'matrix-js-sdk';
|
||||||
|
|
||||||
import MatrixClientPeg from './MatrixClientPeg';
|
import MatrixClientPeg from './MatrixClientPeg';
|
||||||
import { Service, startTermsFlow, TermsNotSignedError } from './Terms';
|
import { Service, startTermsFlow, TermsNotSignedError } from './Terms';
|
||||||
|
@ -36,7 +36,7 @@ export default class IdentityAuthClient {
|
||||||
// though, and making all of them take one could lead to developer
|
// though, and making all of them take one could lead to developer
|
||||||
// confusion about what the idBaseUrl does on a client. Therefore, we
|
// confusion about what the idBaseUrl does on a client. Therefore, we
|
||||||
// just make a new client and live with it.
|
// just make a new client and live with it.
|
||||||
this.tempClient = Matrix.createClient({
|
this.tempClient = createClient({
|
||||||
baseUrl: "", // invalid by design
|
baseUrl: "", // invalid by design
|
||||||
idBaseUrl: identityUrl,
|
idBaseUrl: identityUrl,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue