Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
Weblate 2018-07-13 13:47:50 +00:00
commit e42f8c0c77

View file

@ -166,6 +166,7 @@ export default class Stickerpicker extends React.Component {
} }
_sendVisibilityToWidget(visible) { _sendVisibilityToWidget(visible) {
if (!this.state.stickerpickerWidget) return;
const widgetMessaging = ActiveWidgetStore.getWidgetMessaging(this.state.stickerpickerWidget.id); const widgetMessaging = ActiveWidgetStore.getWidgetMessaging(this.state.stickerpickerWidget.id);
if (widgetMessaging && visible !== this._prevSentVisibility) { if (widgetMessaging && visible !== this._prevSentVisibility) {
widgetMessaging.sendVisibility(visible); widgetMessaging.sendVisibility(visible);