You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
SERVICE_TYPES
This commit is contained in:
@@ -17,7 +17,7 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
import { SERVICETYPES } from './servicetypes';
|
import { SERVICE_TYPES } from './service-types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is an internal module. MatrixBaseApis is currently only meant to be used
|
* This is an internal module. MatrixBaseApis is currently only meant to be used
|
||||||
@@ -31,9 +31,9 @@ const utils = require("./utils");
|
|||||||
|
|
||||||
function termsUrlForService(serviceType, baseUrl) {
|
function termsUrlForService(serviceType, baseUrl) {
|
||||||
switch (serviceType) {
|
switch (serviceType) {
|
||||||
case SERVICETYPES.IS:
|
case SERVICE_TYPES.IS:
|
||||||
return baseUrl + httpApi.PREFIX_IDENTITY_V2;
|
return baseUrl + httpApi.PREFIX_IDENTITY_V2;
|
||||||
case SERVICETYPES.IM:
|
case SERVICE_TYPES.IM:
|
||||||
return baseUrl + '/terms/';
|
return baseUrl + '/terms/';
|
||||||
default:
|
default:
|
||||||
throw new Error('Unsupported service type');
|
throw new Error('Unsupported service type');
|
||||||
|
|||||||
Reference in New Issue
Block a user