diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 68abc8433..4f39d0832 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -242,7 +242,6 @@ "invalidOldPassword": "Old password is invalid", "invalidOpenGroupUrl": "Invalid URL", "invalidPassword": "Invalid password", - "invalidPubkeyFormat": "Invalid Pubkey Format", "inviteContacts": "Invite Contacts", "join": "Join", "joinACommunity": "Join a community", diff --git a/ts/session/types/PubKey.ts b/ts/session/types/PubKey.ts index a6bb3a82f..f2be5ddb0 100644 --- a/ts/session/types/PubKey.ts +++ b/ts/session/types/PubKey.ts @@ -128,7 +128,7 @@ export class PubKey { * Returns a localized string of the error, or undefined if the given pubkey is valid. * * Note: this should be used when starting a conversation and we do not support starting conversation from scratch with a blinded sessionId. - * So if the given pubkey has a blinded prefix, this call will fail with a localized `invalidPubkeyFormat` error + * So if the given pubkey has a blinded prefix, this call will fail with a localized `accountIdErrorInvalid` error */ public static validateWithErrorNoBlinding(pubkey: string): string | undefined { // Check if it's hex diff --git a/ts/session/utils/Toast.tsx b/ts/session/utils/Toast.tsx index 763904d0f..94de64d88 100644 --- a/ts/session/utils/Toast.tsx +++ b/ts/session/utils/Toast.tsx @@ -234,7 +234,7 @@ export function pushUserRemovedFromModerators() { } export function pushInvalidPubKey() { - pushToastSuccess('invalidPubKey', window.i18n('invalidPubkeyFormat')); + pushToastSuccess('invalidPubKey', window.i18n('accountIdErrorInvalid')); } export function pushNoCameraFound() { diff --git a/ts/types/LocalizerKeys.ts b/ts/types/LocalizerKeys.ts index afe51d039..520b030db 100644 --- a/ts/types/LocalizerKeys.ts +++ b/ts/types/LocalizerKeys.ts @@ -242,7 +242,6 @@ export type LocalizerKeys = | 'invalidOldPassword' | 'invalidOpenGroupUrl' | 'invalidPassword' - | 'invalidPubkeyFormat' | 'inviteContacts' | 'join' | 'joinACommunity'