mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 03:05:51 +03:00
Rename MessageComposerInput.insertTrailingComma
to MessageComposerInput.insertTrailingColon
(#7981)
This commit is contained in:
parent
3099a75a5d
commit
675b4271e9
4 changed files with 4 additions and 4 deletions
|
@ -162,7 +162,7 @@ export default class PreferencesUserSettingsTab extends React.Component<IProps,
|
|||
'MessageComposerInput.ctrlEnterToSend',
|
||||
'MessageComposerInput.surroundWith',
|
||||
'MessageComposerInput.showStickersButton',
|
||||
'MessageComposerInput.insertTrailingComma',
|
||||
'MessageComposerInput.insertTrailingColon',
|
||||
];
|
||||
|
||||
static TIME_SETTINGS = [
|
||||
|
|
|
@ -651,7 +651,7 @@ export class PartCreator {
|
|||
userId: string,
|
||||
): [UserPillPart, PlainPart] {
|
||||
const pill = this.userPill(displayName, userId);
|
||||
if (!SettingsStore.getValue("MessageComposerInput.insertTrailingComma")) {
|
||||
if (!SettingsStore.getValue("MessageComposerInput.insertTrailingColon")) {
|
||||
insertTrailingCharacter = false;
|
||||
}
|
||||
const postfix = this.plain(insertTrailingCharacter ? ": " : " ");
|
||||
|
|
|
@ -429,7 +429,7 @@ export const SETTINGS: {[setting: string]: ISetting} = {
|
|||
default: true,
|
||||
controller: new UIFeatureController(UIFeature.Widgets, false),
|
||||
},
|
||||
"MessageComposerInput.insertTrailingComma": {
|
||||
"MessageComposerInput.insertTrailingColon": {
|
||||
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
||||
displayName: _td('Insert a trailing colon after user mentions at the start of a message'),
|
||||
default: true,
|
||||
|
|
|
@ -121,7 +121,7 @@ export default class AccountSettingsHandler extends MatrixClientBackedSettingsHa
|
|||
return content[settingName];
|
||||
}
|
||||
|
||||
if (settingName === "MessageComposerInput.insertTrailingComma") {
|
||||
if (settingName === "MessageComposerInput.insertTrailingColon") {
|
||||
const content = this.getSettings() || {};
|
||||
const value = content[settingName];
|
||||
if (value === null || value === undefined) {
|
||||
|
|
Loading…
Reference in a new issue