Remove at-username i18n string
This commit is contained in:
parent
57029a9908
commit
0e618e5091
6 changed files with 8 additions and 11 deletions
|
@ -860,7 +860,7 @@
|
||||||
},
|
},
|
||||||
"at-username": {
|
"at-username": {
|
||||||
"message": "@$username$",
|
"message": "@$username$",
|
||||||
"description": "@ added to username to signify it as a username. Should it be on the right in your language?"
|
"description": "(deleted 02/07/2023) @ added to username to signify it as a username. Should it be on the right in your language?"
|
||||||
},
|
},
|
||||||
"welcomeToSignal": {
|
"welcomeToSignal": {
|
||||||
"message": "Welcome to Signal"
|
"message": "Welcome to Signal"
|
||||||
|
|
|
@ -181,9 +181,7 @@ export function GlobalModalContainer({
|
||||||
});
|
});
|
||||||
} else if (userNotFoundModalState.type === 'username') {
|
} else if (userNotFoundModalState.type === 'username') {
|
||||||
content = i18n('startConversation--username-not-found', {
|
content = i18n('startConversation--username-not-found', {
|
||||||
atUsername: i18n('at-username', {
|
atUsername: userNotFoundModalState.username,
|
||||||
username: userNotFoundModalState.username,
|
|
||||||
}),
|
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
throw missingCaseError(userNotFoundModalState);
|
throw missingCaseError(userNotFoundModalState);
|
||||||
|
|
|
@ -62,7 +62,7 @@ export const UsernameCheckbox: FunctionComponent<PropsType> = React.memo(
|
||||||
username,
|
username,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const title = i18n('at-username', { username });
|
const title = username;
|
||||||
|
|
||||||
const avatar = (
|
const avatar = (
|
||||||
<Avatar
|
<Avatar
|
||||||
|
|
|
@ -30,7 +30,6 @@ export function UsernameSearchResultListItem({
|
||||||
setIsFetchingUUID,
|
setIsFetchingUUID,
|
||||||
showConversation,
|
showConversation,
|
||||||
}: Props): JSX.Element {
|
}: Props): JSX.Element {
|
||||||
const usernameText = i18n('at-username', { username });
|
|
||||||
const boundOnClick = useCallback(async () => {
|
const boundOnClick = useCallback(async () => {
|
||||||
if (isFetchingUsername) {
|
if (isFetchingUsername) {
|
||||||
return;
|
return;
|
||||||
|
@ -59,7 +58,7 @@ export function UsernameSearchResultListItem({
|
||||||
<BaseConversationListItem
|
<BaseConversationListItem
|
||||||
acceptedMessageRequest={false}
|
acceptedMessageRequest={false}
|
||||||
conversationType="direct"
|
conversationType="direct"
|
||||||
headerName={usernameText}
|
headerName={username}
|
||||||
i18n={i18n}
|
i18n={i18n}
|
||||||
isMe={false}
|
isMe={false}
|
||||||
isSelected={false}
|
isSelected={false}
|
||||||
|
@ -67,7 +66,7 @@ export function UsernameSearchResultListItem({
|
||||||
shouldShowSpinner={isFetchingUsername}
|
shouldShowSpinner={isFetchingUsername}
|
||||||
onClick={boundOnClick}
|
onClick={boundOnClick}
|
||||||
sharedGroupNames={[]}
|
sharedGroupNames={[]}
|
||||||
title={usernameText}
|
title={username}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,7 +89,7 @@ describe('pnp/username', function needsName() {
|
||||||
debug('find username in the left pane');
|
debug('find username in the left pane');
|
||||||
await leftPane
|
await leftPane
|
||||||
.locator(
|
.locator(
|
||||||
`[data-testid="${usernameContact.device.uuid}"] >> "@${USERNAME}"`
|
`[data-testid="${usernameContact.device.uuid}"] >> "${USERNAME}"`
|
||||||
)
|
)
|
||||||
.waitFor();
|
.waitFor();
|
||||||
|
|
||||||
|
@ -243,7 +243,7 @@ describe('pnp/username', function needsName() {
|
||||||
await searchInput.type(`@${CARL_USERNAME}`);
|
await searchInput.type(`@${CARL_USERNAME}`);
|
||||||
|
|
||||||
debug('starting lookup');
|
debug('starting lookup');
|
||||||
await window.locator(`button >> "@${CARL_USERNAME}"`).click();
|
await window.locator(`button >> "${CARL_USERNAME}"`).click();
|
||||||
|
|
||||||
debug('sending a message');
|
debug('sending a message');
|
||||||
{
|
{
|
||||||
|
|
|
@ -40,7 +40,7 @@ export function getTitleNoDefault(
|
||||||
(isShort ? attributes.profileName : undefined) ||
|
(isShort ? attributes.profileName : undefined) ||
|
||||||
getProfileName(attributes) ||
|
getProfileName(attributes) ||
|
||||||
getNumber(attributes) ||
|
getNumber(attributes) ||
|
||||||
(username && window.i18n('at-username', { username }))
|
username
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue