Fix the hangup button and other custom actions
This commit is contained in:
parent
9b984a35e0
commit
b46f58274e
5 changed files with 29 additions and 6 deletions
|
@ -41,6 +41,7 @@ import {SettingLevel} from "../../../settings/SettingLevel";
|
|||
import WidgetStore from "../../../stores/WidgetStore";
|
||||
import {Action} from "../../../dispatcher/actions";
|
||||
import {StopGapWidget} from "../../../stores/widgets/StopGapWidget";
|
||||
import {ElementWidgetActions} from "../../../stores/widgets/ElementWidgetActions";
|
||||
|
||||
export default class AppTile extends React.Component {
|
||||
constructor(props) {
|
||||
|
@ -296,7 +297,7 @@ export default class AppTile extends React.Component {
|
|||
_onWidgetReady = () => {
|
||||
this.setState({loading: false});
|
||||
if (WidgetType.JITSI.matches(this.props.app.type)) {
|
||||
this._sgWidget.widgetApi.transport.send("im.vector.ready", {});
|
||||
this._sgWidget.widgetApi.transport.send(ElementWidgetActions.ClientReady, {});
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -213,7 +213,6 @@ export default class Stickerpicker extends React.Component {
|
|||
|
||||
_sendVisibilityToWidget(visible) {
|
||||
if (!this.state.stickerpickerWidget) return;
|
||||
// TODO: [TravisR] Fix this
|
||||
const messaging = WidgetMessagingStore.instance.getMessagingForId(this.state.stickerpickerWidget.id);
|
||||
if (messaging && visible !== this._prevSentVisibility) {
|
||||
messaging.updateVisibility(visible).catch(err => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue