@@ -19,7 +19,6 @@ import { Room } from 'matrix-js-sdk/src/models/room';
1919import { _t , _td } from '../../../languageHandler' ;
2020import AppTile from '../elements/AppTile' ;
2121import { MatrixClientPeg } from '../../../MatrixClientPeg' ;
22- import * as sdk from '../../../index' ;
2322import dis from '../../../dispatcher/dispatcher' ;
2423import AccessibleButton from '../elements/AccessibleButton' ;
2524import WidgetUtils , { IWidgetEvent } from '../../../utils/WidgetUtils' ;
@@ -34,6 +33,7 @@ import { WidgetMessagingStore } from "../../../stores/widgets/WidgetMessagingSto
3433import { replaceableComponent } from "../../../utils/replaceableComponent" ;
3534import { ActionPayload } from '../../../dispatcher/payloads' ;
3635import ScalarAuthClient from '../../../ScalarAuthClient' ;
36+ import GenericElementContextMenu from "../context_menus/GenericElementContextMenu" ;
3737
3838// This should be below the dialog level (4000), but above the rest of the UI (1000-2000).
3939// We sit in a context menu, so this should be given to the context menu.
@@ -250,7 +250,6 @@ export default class Stickerpicker extends React.PureComponent<IProps, IState> {
250250 // Use a separate ReactDOM tree to render the AppTile separately so that it persists and does
251251 // not unmount when we (a) close the sticker picker (b) switch rooms. It's properties are still
252252 // updated.
253- const PersistedElement = sdk . getComponent ( "elements.PersistedElement" ) ;
254253
255254 // Load stickerpack content
256255 if ( stickerpickerWidget && stickerpickerWidget . content && stickerpickerWidget . content . url ) {
@@ -415,7 +414,6 @@ export default class Stickerpicker extends React.PureComponent<IProps, IState> {
415414 title = { _t ( "Hide Stickers" ) }
416415 /> ;
417416
418- const GenericElementContextMenu = sdk . getComponent ( 'context_menus.GenericElementContextMenu' ) ;
419417 stickerPicker = < ContextMenu
420418 chevronOffset = { this . state . stickerpickerChevronOffset }
421419 chevronFace = { ChevronFace . Bottom }
0 commit comments