mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-15 11:21:31 +03:00
Rename setting
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
9f1113b3bd
commit
c61e41ba77
3 changed files with 5 additions and 5 deletions
|
@ -263,7 +263,7 @@ export default class MessageComposer extends React.Component {
|
||||||
tombstone: this._getRoomTombstone(),
|
tombstone: this._getRoomTombstone(),
|
||||||
canSendMessages: this.props.room.maySendMessage(),
|
canSendMessages: this.props.room.maySendMessage(),
|
||||||
showCallButtons: SettingsStore.getValue("showCallButtonsInComposer"),
|
showCallButtons: SettingsStore.getValue("showCallButtonsInComposer"),
|
||||||
showSendButton: SettingsStore.getValue("MessageComposerInput.sendButton"),
|
showSendButton: SettingsStore.getValue("MessageComposerInput.showSendButton"),
|
||||||
hasConference: WidgetStore.instance.doesRoomHaveConference(this.props.room),
|
hasConference: WidgetStore.instance.doesRoomHaveConference(this.props.room),
|
||||||
joinedConference: WidgetStore.instance.isJoinedToConferenceIn(this.props.room),
|
joinedConference: WidgetStore.instance.isJoinedToConferenceIn(this.props.room),
|
||||||
};
|
};
|
||||||
|
@ -283,7 +283,7 @@ export default class MessageComposer extends React.Component {
|
||||||
|
|
||||||
onSendButtonChanged = () => {
|
onSendButtonChanged = () => {
|
||||||
this.setState({
|
this.setState({
|
||||||
showSendButton: SettingsStore.getValue("MessageComposerInput.sendButton"),
|
showSendButton: SettingsStore.getValue("MessageComposerInput.showSendButton"),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -300,7 +300,7 @@ export default class MessageComposer extends React.Component {
|
||||||
MatrixClientPeg.get().on("RoomState.events", this._onRoomStateEvents);
|
MatrixClientPeg.get().on("RoomState.events", this._onRoomStateEvents);
|
||||||
this._waitForOwnMember();
|
this._waitForOwnMember();
|
||||||
this.showSendButtonRef = SettingsStore.watchSetting(
|
this.showSendButtonRef = SettingsStore.watchSetting(
|
||||||
"MessageComposerInput.sendButton", null, this.onSendButtonChanged);
|
"MessageComposerInput.showSendButton", null, this.onSendButtonChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
_waitForOwnMember() {
|
_waitForOwnMember() {
|
||||||
|
|
|
@ -34,7 +34,7 @@ export default class PreferencesUserSettingsTab extends React.Component {
|
||||||
'MessageComposerInput.suggestEmoji',
|
'MessageComposerInput.suggestEmoji',
|
||||||
'sendTypingNotifications',
|
'sendTypingNotifications',
|
||||||
'MessageComposerInput.ctrlEnterToSend',
|
'MessageComposerInput.ctrlEnterToSend',
|
||||||
`MessageComposerInput.sendButton`,
|
`MessageComposerInput.showSendButton`,
|
||||||
];
|
];
|
||||||
|
|
||||||
static TIMELINE_SETTINGS = [
|
static TIMELINE_SETTINGS = [
|
||||||
|
|
|
@ -336,7 +336,7 @@ export const SETTINGS: {[setting: string]: ISetting} = {
|
||||||
displayName: isMac ? _td("Use Command + Enter to send a message") : _td("Use Ctrl + Enter to send a message"),
|
displayName: isMac ? _td("Use Command + Enter to send a message") : _td("Use Ctrl + Enter to send a message"),
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
"MessageComposerInput.sendButton": {
|
"MessageComposerInput.showSendButton": {
|
||||||
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
||||||
displayName: _td("Show send message button"),
|
displayName: _td("Show send message button"),
|
||||||
default: false,
|
default: false,
|
||||||
|
|
Loading…
Reference in a new issue