You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Merge pull request #2057 from matrix-org/t3chguy/null-guard-stickerpicker
add null-guard for stickerpickerWidget in StickerPicker
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user