diff --git a/src/components/views/rooms/Stickerpicker.js b/src/components/views/rooms/Stickerpicker.js index 3452e27102..841cfb9b03 100644 --- a/src/components/views/rooms/Stickerpicker.js +++ b/src/components/views/rooms/Stickerpicker.js @@ -166,6 +166,7 @@ export default class Stickerpicker extends React.Component { } _sendVisibilityToWidget(visible) { + if (!this.state.stickerpickerWidget) return; const widgetMessaging = ActiveWidgetStore.getWidgetMessaging(this.state.stickerpickerWidget.id); if (widgetMessaging && visible !== this._prevSentVisibility) { widgetMessaging.sendVisibility(visible);