From 54618e00a5f8b4087451cc792ac251bf5f9a3c22 Mon Sep 17 00:00:00 2001 From: Bryce McMath <32586431+bryce-mcmath@users.noreply.github.com> Date: Fri, 3 Jan 2025 11:41:28 -0800 Subject: [PATCH] fix: incorrect proof chat role (#1375) Signed-off-by: Bryce McMath --- packages/legacy/core/App/localization/en/index.ts | 2 +- packages/legacy/core/App/localization/fr/index.ts | 2 +- packages/legacy/core/App/localization/pt-br/index.ts | 2 +- packages/legacy/core/App/utils/helpers.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/legacy/core/App/localization/en/index.ts b/packages/legacy/core/App/localization/en/index.ts index 3e7d03fb5..d0d1f8097 100644 --- a/packages/legacy/core/App/localization/en/index.ts +++ b/packages/legacy/core/App/localization/en/index.ts @@ -839,7 +839,7 @@ const translation = { "CredentialReceived": "received a credential", "ProofRequestSent": "sent a proof request", "ProofPresentationReceived": "has sent you information", - "ProofRequestReceived": "received a proof request", + "ProofRequestReceived": "has sent you a proof request", "ProofRequestRejected": "rejected a proof request", "ProofRequestRejectReceived": "rejected a proof request", "ProofRequestSatisfied": "shared information", diff --git a/packages/legacy/core/App/localization/fr/index.ts b/packages/legacy/core/App/localization/fr/index.ts index 4fe919d42..cca603d21 100644 --- a/packages/legacy/core/App/localization/fr/index.ts +++ b/packages/legacy/core/App/localization/fr/index.ts @@ -816,7 +816,7 @@ const translation = { "CredentialReceived": "reçu une attestation", "ProofRequestSent": "envoyé une demande d'attestation", "ProofPresentationReceived": "vous a envoyé des informations", - "ProofRequestReceived": "reçu une demande d'attestation", + "ProofRequestReceived": "has sent you a proof request (FR)", "ProofRequestRejected": "rejeté une demande d'attestation", "ProofRequestRejectReceived": "a rejeté une demande d'attestation", "ProofRequestSatisfied": "informations partagées", diff --git a/packages/legacy/core/App/localization/pt-br/index.ts b/packages/legacy/core/App/localization/pt-br/index.ts index 1ae6946fb..d17156fe2 100644 --- a/packages/legacy/core/App/localization/pt-br/index.ts +++ b/packages/legacy/core/App/localization/pt-br/index.ts @@ -791,7 +791,7 @@ const translation = { "CredentialReceived": "recebeu uma credencial", "ProofRequestSent": "enviou uma solicitação de prova", "ProofPresentationReceived": "te enviou informações", - "ProofRequestReceived": "recebeu uma solicitação de prova", + "ProofRequestReceived": "has sent you a proof request (PT-BR)", "ProofRequestRejected": "rejeitou uma solicitação de prova", "ProofRequestRejectReceived": "rejeitou um pedido de prova", "ProofRequestSatisfied": "informações compartilhadas", diff --git a/packages/legacy/core/App/utils/helpers.ts b/packages/legacy/core/App/utils/helpers.ts index e44e82a50..d3fa678d8 100644 --- a/packages/legacy/core/App/utils/helpers.ts +++ b/packages/legacy/core/App/utils/helpers.ts @@ -1200,7 +1200,7 @@ export function getProofEventRole(record: ProofExchangeRecord) { case ProofState.PresentationReceived: return Role.them case ProofState.RequestReceived: - return Role.me + return Role.them case ProofState.ProposalSent: case ProofState.PresentationSent: return Role.me