You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
add null-guard for stickerpickerWidget in StickerPicker
This commit is contained in:
committed by
GitHub
parent
7bbb967ddd
commit
4850387ae0
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user