From 9a5c916570ebe2e81077f270329f3f4cb1a90888 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Thu, 22 Feb 2018 15:36:01 +0000 Subject: [PATCH] Close modal on integration manager launch. --- src/components/views/rooms/Stickerpack.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/views/rooms/Stickerpack.js b/src/components/views/rooms/Stickerpack.js index e7403c3787..5aa845b4db 100644 --- a/src/components/views/rooms/Stickerpack.js +++ b/src/components/views/rooms/Stickerpack.js @@ -195,8 +195,6 @@ export default class Stickerpack extends React.Component { */ onFinished() { this.setState({showStickers: false}); - this.stickersMenu = null; - this.forceUpdate(); console.warn("finshed"); } @@ -204,7 +202,6 @@ export default class Stickerpack extends React.Component { * Launch the integrations manager on the stickers integration page */ _launchManageIntegrations() { - this.onFinished(); const IntegrationsManager = sdk.getComponent("views.settings.IntegrationsManager"); const src = (this.scalarClient !== null && this.scalarClient.hasCredentials()) ? this.scalarClient.getScalarInterfaceUrlForRoom( @@ -216,6 +213,7 @@ export default class Stickerpack extends React.Component { Modal.createTrackedDialog('Integrations Manager', '', IntegrationsManager, { src: src, }, "mx_IntegrationsManager"); + this.stickersMenu.close(); } render() {