diff --git a/src/components/views/elements/AppTile.js b/src/components/views/elements/AppTile.js index d9593ff52a..7be0bab33c 100644 --- a/src/components/views/elements/AppTile.js +++ b/src/components/views/elements/AppTile.js @@ -439,6 +439,7 @@ export default class AppTile extends React.Component { // Force the widget to be non-persistent ActiveWidgetStore.destroyPersistentWidget(); + const PersistedElement = sdk.getComponent("elements.PersistedElement"); PersistedElement.destroyElement(this._persistKey); } diff --git a/src/stores/ActiveWidgetStore.js b/src/stores/ActiveWidgetStore.js index fe83260cde..89fa6e6936 100644 --- a/src/stores/ActiveWidgetStore.js +++ b/src/stores/ActiveWidgetStore.js @@ -17,7 +17,6 @@ limitations under the License. import EventEmitter from 'events'; import MatrixClientPeg from '../MatrixClientPeg'; -import sdk from '../index'; /** * Stores information about the widgets active in the app right now: