Added option to disable send button

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-01-09 09:17:40 +01:00
parent d589c61000
commit c64b2a585f
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
3 changed files with 7 additions and 1 deletions

View File

@ -455,7 +455,7 @@ export default class MessageComposer extends React.Component {
}
}
if (true) {
if (SettingsStore.getValue("MessageComposerInput.sendButton")) {
controls.push((
<AccessibleTooltipButton
className="mx_MessageComposer_button mx_MessageComposer_sendMessage"

View File

@ -34,6 +34,7 @@ export default class PreferencesUserSettingsTab extends React.Component {
'MessageComposerInput.suggestEmoji',
'sendTypingNotifications',
'MessageComposerInput.ctrlEnterToSend',
`MessageComposerInput.sendButton`,
];
static TIMELINE_SETTINGS = [

View File

@ -336,6 +336,11 @@ export const SETTINGS: {[setting: string]: ISetting} = {
displayName: isMac ? _td("Use Command + Enter to send a message") : _td("Use Ctrl + Enter to send a message"),
default: false,
},
"MessageComposerInput.sendButton": {
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
displayName: _td("Show send message button"),
default: false,
},
"MessageComposerInput.autoReplaceEmoji": {
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
displayName: _td('Automatically replace plain text Emoji'),