You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Use a static prop on Stickerpicker to track the current widget
This commit is contained in:
@@ -42,9 +42,6 @@ class ActiveWidgetStore extends EventEmitter {
|
||||
// What room ID each widget is associated with (if it's a room widget)
|
||||
this._roomIdByWidgetId = {};
|
||||
|
||||
// The sticker picker widget definition the app is currently using, if any
|
||||
this._stickerPickerWidget = null;
|
||||
|
||||
this.onRoomStateEvents = this.onRoomStateEvents.bind(this);
|
||||
|
||||
this.dispatcherRef = null;
|
||||
@@ -151,18 +148,6 @@ class ActiveWidgetStore extends EventEmitter {
|
||||
delete this._roomIdByWidgetId[widgetId];
|
||||
this.emit('update');
|
||||
}
|
||||
|
||||
getStickerPickerWidget() {
|
||||
return this._stickerPickerWidget;
|
||||
}
|
||||
|
||||
setStickerPickerWidget(widget) {
|
||||
this._stickerPickerWidget = widget;
|
||||
}
|
||||
|
||||
delStickerPickerWidget() {
|
||||
this._stickerPickerWidget = null;
|
||||
}
|
||||
}
|
||||
|
||||
if (global.singletonActiveWidgetStore === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user