Fix coding style

Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
This commit is contained in:
czeidler 2020-11-20 19:02:52 +13:00 committed by GitHub
parent 1346416d20
commit 063b26835e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,7 +124,8 @@ export default class SendMessageComposer extends React.Component {
} }
const hasModifier = event.altKey || event.ctrlKey || event.metaKey || event.shiftKey; const hasModifier = event.altKey || event.ctrlKey || event.metaKey || event.shiftKey;
const ctrlEnterToSend = !!SettingsStore.getValue('MessageComposerInput.ctrlEnterToSend'); const ctrlEnterToSend = !!SettingsStore.getValue('MessageComposerInput.ctrlEnterToSend');
const send = ctrlEnterToSend ? event.key === Key.ENTER && isOnlyCtrlOrCmdKeyEvent(event) const send = ctrlEnterToSend
? event.key === Key.ENTER && isOnlyCtrlOrCmdKeyEvent(event)
: event.key === Key.ENTER && !hasModifier; : event.key === Key.ENTER && !hasModifier;
if (send) { if (send) {
this._sendMessage(); this._sendMessage();