From 551ee4221bb046efe7c7510865621415b4133937 Mon Sep 17 00:00:00 2001 From: William Grant Date: Fri, 26 Apr 2024 10:45:53 +1000 Subject: [PATCH] fix: cleaned up unused localised strings since we swapped some toast messages for input messages --- _locales/en/messages.json | 1 - ts/session/types/PubKey.ts | 2 +- ts/session/utils/Toast.tsx | 2 +- ts/types/LocalizerKeys.ts | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) 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'