You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Avoid redefining function parameter
This commit is contained in:
@@ -45,11 +45,11 @@ export default class IntegrationManager {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Launch the integrations manager on the stickers integration page
|
* Launch the integrations manager on the stickers integration page
|
||||||
* @param {string} integType integration / widget type
|
* @param {string} integName integration / widget type
|
||||||
* @param {string} integId integration / widget ID
|
* @param {string} integId integration / widget ID
|
||||||
* @param {function} onClose Callback to invoke on integration manager close
|
* @param {function} onClose Callback to invoke on integration manager close
|
||||||
*/
|
*/
|
||||||
static async open(integType, integId, onClose) {
|
static async open(integName, integId, onClose) {
|
||||||
await IntegrationManager._init();
|
await IntegrationManager._init();
|
||||||
const IntegrationsManager = sdk.getComponent("views.settings.IntegrationsManager");
|
const IntegrationsManager = sdk.getComponent("views.settings.IntegrationsManager");
|
||||||
if (global.mxIntegrationManager.error ||
|
if (global.mxIntegrationManager.error ||
|
||||||
@@ -57,7 +57,7 @@ export default class IntegrationManager {
|
|||||||
console.error("Scalar error", global.mxIntegrationManager);
|
console.error("Scalar error", global.mxIntegrationManager);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
integType = 'type_' + integType;
|
const integType = 'type_' + integName;
|
||||||
const src = (global.mxIntegrationManager.client && global.mxIntegrationManager.client.hasCredentials()) ?
|
const src = (global.mxIntegrationManager.client && global.mxIntegrationManager.client.hasCredentials()) ?
|
||||||
global.mxIntegrationManager.client.getScalarInterfaceUrlForRoom(
|
global.mxIntegrationManager.client.getScalarInterfaceUrlForRoom(
|
||||||
{roomId: RoomViewStore.getRoomId()},
|
{roomId: RoomViewStore.getRoomId()},
|
||||||
|
|||||||
Reference in New Issue
Block a user