Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
add null-guard for stickerpickerWidget in StickerPicker
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Jul 13, 2018
1 parent 7bbb967 commit 4850387
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/views/rooms/Stickerpicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4850387

Please sign in to comment.