Rename MessageComposerInput.insertTrailingComma to MessageComposerInput.insertTrailingColon (#7981)

This commit is contained in:
Šimon Brandner 2022-03-04 16:13:50 +01:00 committed by GitHub
parent 3099a75a5d
commit 675b4271e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -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,

View file

@ -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) {