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

Commit

Permalink
Merge pull request #2057 from matrix-org/t3chguy/null-guard-stickerpi…
Browse files Browse the repository at this point in the history
…cker

add null-guard for stickerpickerWidget in StickerPicker
  • Loading branch information
ara4n authored Jul 13, 2018
2 parents 7bbb967 + 4850387 commit ac1f130
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 ac1f130

Please sign in to comment.