You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-25 05:23:13 +03:00
Revert 8004e82c50
We need to switch the paths over all at once, so we can't commit this yet: leave it until scalar suypports the new API then we can update develop to use the _matrix paths. (Also for some reason I broke the IS path too)
This commit is contained in:
@@ -32,9 +32,9 @@ const utils = require("./utils");
|
||||
function termsUrlForService(serviceType, baseUrl) {
|
||||
switch (serviceType) {
|
||||
case SERVICE_TYPES.IS:
|
||||
return baseUrl + httpApi.PREFIX_IDENTITY_V2 + '_matrix/v2/integrations/v1/terms';
|
||||
return baseUrl + httpApi.PREFIX_IDENTITY_V2 + '/terms';
|
||||
case SERVICE_TYPES.IM:
|
||||
return baseUrl + '/_matrix/integrations/v1/terms';
|
||||
return baseUrl + '/terms';
|
||||
default:
|
||||
throw new Error('Unsupported service type');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user