Skip to content

Commit

Permalink
fix LHN user name disappears from WS admin rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalydosos committed Feb 6, 2025
1 parent e46461a commit 93a8b09
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
5 changes: 2 additions & 3 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ import type {
EditActionParams,
EditDestinationSubtitleParams,
ElectronicFundsParams,
EmployeeLeftParams,
EnterMagicCodeParams,
ExportAgainModalDescriptionParams,
ExportedToIntegrationParams,
Expand Down Expand Up @@ -96,6 +95,7 @@ import type {
LastFourDigitsParams,
LastSyncAccountingParams,
LastSyncDateParams,
LeftWorkspaceParams,
LocalTimeParams,
LoggedInAsParams,
LogSizeParams,
Expand Down Expand Up @@ -4327,7 +4327,6 @@ const translations = {
users: 'users',
invited: 'invited',
removed: 'removed',
leftWorkspace: 'left the workspace',
to: 'to',
from: 'from',
},
Expand Down Expand Up @@ -5046,7 +5045,7 @@ const translations = {
`updated the role of ${email} to ${newRole === 'member' || newRole === 'user' ? 'member' : newRole} (previously ${
currentRole === 'member' || currentRole === 'user' ? 'member' : currentRole
})`,
employeeLeft: ({nameOrEmail}: EmployeeLeftParams) => `${nameOrEmail} left the workspace`,
leftWorkspace: ({nameOrEmail}: LeftWorkspaceParams) => `${nameOrEmail} left the workspace`,
removeMember: ({email, role}: AddEmployeeParams) => `removed ${role === 'member' || role === 'user' ? 'member' : 'admin'} ${email}`,
removedConnection: ({connectionName}: ConnectionNameParams) => `removed connection to ${CONST.POLICY.CONNECTIONS.NAME_USER_FRIENDLY[connectionName]}`,
},
Expand Down
5 changes: 2 additions & 3 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ import type {
EditActionParams,
EditDestinationSubtitleParams,
ElectronicFundsParams,
EmployeeLeftParams,
EnterMagicCodeParams,
ExportAgainModalDescriptionParams,
ExportedToIntegrationParams,
Expand Down Expand Up @@ -95,6 +94,7 @@ import type {
LastFourDigitsParams,
LastSyncAccountingParams,
LastSyncDateParams,
LeftWorkspaceParams,
LocalTimeParams,
LoggedInAsParams,
LogSizeParams,
Expand Down Expand Up @@ -4372,7 +4372,6 @@ const translations = {
users: 'miembros',
invited: 'invitó',
removed: 'eliminó',
leftWorkspace: 'salió del espacio de trabajo',
to: 'a',
from: 'de',
},
Expand Down Expand Up @@ -5096,7 +5095,7 @@ const translations = {
`actualizó el rol ${email} a ${newRole === 'miembro' || newRole === 'user' ? 'miembro' : 'administrador'} (previamente ${
currentRole === 'miembro' || currentRole === 'user' ? 'miembro' : 'administrador'
})`,
employeeLeft: ({nameOrEmail}: EmployeeLeftParams) => `${nameOrEmail} salió del espacio de trabajo`,
leftWorkspace: ({nameOrEmail}: LeftWorkspaceParams) => `${nameOrEmail} salió del espacio de trabajo`,
removeMember: ({email, role}: AddEmployeeParams) => `eliminado ${role === 'miembro' || role === 'user' ? 'miembro' : 'administrador'} ${email}`,
removedConnection: ({connectionName}: ConnectionNameParams) => `eliminó la conexión a ${CONST.POLICY.CONNECTIONS.NAME_USER_FRIENDLY[connectionName]}`,
},
Expand Down
4 changes: 2 additions & 2 deletions src/languages/params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ type AddEmployeeParams = {email: string; role: string};

type UpdateRoleParams = {email: string; currentRole: string; newRole: string};

type EmployeeLeftParams = {nameOrEmail: string};
type LeftWorkspaceParams = {nameOrEmail: string};

type RemoveMemberParams = {email: string; role: string};

Expand Down Expand Up @@ -801,7 +801,7 @@ export type {
IntegrationSyncFailedParams,
AddEmployeeParams,
UpdateRoleParams,
EmployeeLeftParams,
LeftWorkspaceParams,
RemoveMemberParams,
DateParams,
FiltersAmountBetweenParams,
Expand Down
2 changes: 1 addition & 1 deletion src/libs/ReportActionsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1779,7 +1779,7 @@ function getPolicyChangeLogEmployeeLeftMessage(reportAction: ReportAction, useNa
}
const nameOrEmail = useName && !!personalDetails?.firstName ? `${personalDetails?.firstName}:` : originalMessage?.email ?? '';
const formattedNameOrEmail = formatPhoneNumber(nameOrEmail);
return translateLocal('report.actions.type.employeeLeft', {nameOrEmail: formattedNameOrEmail});
return translateLocal('report.actions.type.leftWorkspace', {nameOrEmail: formattedNameOrEmail});
}

function isPolicyChangeLogDeleteMemberMessage(
Expand Down

0 comments on commit 93a8b09

Please sign in to comment.