Removed showSendButton setting

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-02-12 15:42:59 +01:00
parent 35c0cb99d0
commit ba2c68819f
No known key found for this signature in database
GPG key ID: 9760693FDD98A790
3 changed files with 0 additions and 16 deletions

View file

@ -279,7 +279,6 @@ export default class MessageComposer extends React.Component {
tombstone: this._getRoomTombstone(),
canSendMessages: this.props.room.maySendMessage(),
showCallButtons: SettingsStore.getValue("showCallButtonsInComposer"),
showSendButton: SettingsStore.getValue("MessageComposerInput.showSendButton"),
hasConference: WidgetStore.instance.doesRoomHaveConference(this.props.room),
joinedConference: WidgetStore.instance.isJoinedToConferenceIn(this.props.room),
isComposerEmpty: true,
@ -298,12 +297,6 @@ export default class MessageComposer extends React.Component {
}
};
onShowSendButtonChanged = () => {
this.setState({
showSendButton: SettingsStore.getValue("MessageComposerInput.showSendButton"),
});
}
_onWidgetUpdate = () => {
this.setState({hasConference: WidgetStore.instance.doesRoomHaveConference(this.props.room)});
};
@ -316,8 +309,6 @@ export default class MessageComposer extends React.Component {
this.dispatcherRef = dis.register(this.onAction);
MatrixClientPeg.get().on("RoomState.events", this._onRoomStateEvents);
this._waitForOwnMember();
this.showSendButtonRef = SettingsStore.watchSetting(
"MessageComposerInput.showSendButton", null, this.onShowSendButtonChanged);
}
_waitForOwnMember() {
@ -343,7 +334,6 @@ export default class MessageComposer extends React.Component {
WidgetStore.instance.removeListener(UPDATE_EVENT, this._onWidgetUpdate);
ActiveWidgetStore.removeListener('update', this._onActiveWidgetUpdate);
dis.unregister(this.dispatcherRef);
SettingsStore.unwatchSetting(this.showSendButtonRef);
}
_onRoomStateEvents(ev, state) {