Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/webapp/src/i18n/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -1009,16 +1009,16 @@
"extensionsGiphyNoGifs": "Oops, no gifs",
"extensionsGiphyRandom": "Random",
"failedToAddParticipantSingularNonFederatingBackends": "[bold]{name}[/bold] could not be added to the group as their backend doesn't federate with the backends of all group participants.",
"failedToAddParticipantSingularNotMlsCapable": "[bold]{name}[/bold] could not be added to the group.",
"failedToAddParticipantSingularNotMlsCapable": "[bold]{name}[/bold] could not be added to the conversation. They may not have MLS-capable clients.",
"failedToAddParticipantSingularOfflineBackend": "[bold]{name}[/bold] could not be added to the group as the backend of [bold]{domain}[/bold] could not be reached.",
"failedToAddParticipantSingularOfflineForTooLong": "[bold]{name}[/bold] could not be added to the group.",
"failedToAddParticipantsPlural": "[bold]{total} participants[/bold] could not be added to the group.",
"failedToAddParticipantsPluralDetailsNonFederatingBackends": "[bold]{names}[/bold] and [bold]{name}[/bold] could not be added to the group as their backends do not federate with each other.",
"failedToAddParticipantsPluralDetailsNotMlsCapable": "[bold]{names}[/bold] and [bold]{name}[/bold] could not be added to the group.",
"failedToAddParticipantsPluralDetailsNotMlsCapable": "[bold]{names}[/bold] and [bold]{name}[/bold] could not be added to the conversation. They may not have MLS-capable clients.",
"failedToAddParticipantsPluralDetailsOfflineBackend": "[bold]{names}[/bold] and [bold]{name}[/bold] could not be added to the group as the backend of [bold]{domain}[/bold] could not be reached.",
"failedToAddParticipantsPluralDetailsOfflineForTooLong": "[bold]{names}[/bold] and [bold]{name}[/bold] could not be added to the group.",
"failedToAddParticipantsSingularDetailsNonFederatingBackends": "[bold]{name}[/bold] could not be added to the group as their backends do not federate with each other.",
"failedToAddParticipantsSingularDetailsNotMlsCapable": "[bold]{name}[/bold] could not be added to the group.",
"failedToAddParticipantsSingularDetailsNotMlsCapable": "[bold]{name}[/bold] could not be added to the conversation. They may not have MLS-capable clients.",
"failedToAddParticipantsSingularDetailsOfflineBackend": "[bold]{name}[/bold] could not be added to the group as the backend of [bold]{domain}[/bold] could not be reached.",
"failedToAddParticipantsSingularDetailsOfflineForTooLong": "[bold]{name}[/bold] could not be added to the group.",
"featureConfigChangeModalApplock": "Mandatory app lock is now disabled. You do not need a passcode or biometric authentication when returning to the app.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const reasonToMessageDataMap = {
translationLabel: 'OfflineForTooLong',
},
[AddUsersFailureReasons.NOT_MLS_CAPABLE]: {
link: {url: config.URL.SUPPORT.MLS_MIGRATION_FROM_PROTEUS, name: 'mls-learn-more'},
link: {url: config.URL.SUPPORT.MLS_LEARN_MORE, name: 'mls-learn-more'},
translationLabel: 'NotMlsCapable',
},
} as const;
Expand Down
6 changes: 3 additions & 3 deletions apps/webapp/src/types/i18n.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1013,16 +1013,16 @@ declare module 'I18n/en-US.json' {
'extensionsGiphyNoGifs': `Oops, no gifs`;
'extensionsGiphyRandom': `Random`;
'failedToAddParticipantSingularNonFederatingBackends': `[bold]{name}[/bold] could not be added to the group as their backend doesn\'t federate with the backends of all group participants.`;
'failedToAddParticipantSingularNotMlsCapable': `[bold]{name}[/bold] could not be added to the group.`;
'failedToAddParticipantSingularNotMlsCapable': `[bold]{name}[/bold] could not be added to the conversation. They may not have MLS-capable clients.`;
'failedToAddParticipantSingularOfflineBackend': `[bold]{name}[/bold] could not be added to the group as the backend of [bold]{domain}[/bold] could not be reached.`;
'failedToAddParticipantSingularOfflineForTooLong': `[bold]{name}[/bold] could not be added to the group.`;
'failedToAddParticipantsPlural': `[bold]{total} participants[/bold] could not be added to the group.`;
'failedToAddParticipantsPluralDetailsNonFederatingBackends': `[bold]{names}[/bold] and [bold]{name}[/bold] could not be added to the group as their backends do not federate with each other.`;
'failedToAddParticipantsPluralDetailsNotMlsCapable': `[bold]{names}[/bold] and [bold]{name}[/bold] could not be added to the group.`;
'failedToAddParticipantsPluralDetailsNotMlsCapable': `[bold]{names}[/bold] and [bold]{name}[/bold] could not be added to the conversation. They may not have MLS-capable clients.`;
'failedToAddParticipantsPluralDetailsOfflineBackend': `[bold]{names}[/bold] and [bold]{name}[/bold] could not be added to the group as the backend of [bold]{domain}[/bold] could not be reached.`;
'failedToAddParticipantsPluralDetailsOfflineForTooLong': `[bold]{names}[/bold] and [bold]{name}[/bold] could not be added to the group.`;
'failedToAddParticipantsSingularDetailsNonFederatingBackends': `[bold]{name}[/bold] could not be added to the group as their backends do not federate with each other.`;
'failedToAddParticipantsSingularDetailsNotMlsCapable': `[bold]{name}[/bold] could not be added to the group.`;
'failedToAddParticipantsSingularDetailsNotMlsCapable': `[bold]{name}[/bold] could not be added to the conversation. They may not have MLS-capable clients.`;
'failedToAddParticipantsSingularDetailsOfflineBackend': `[bold]{name}[/bold] could not be added to the group as the backend of [bold]{domain}[/bold] could not be reached.`;
'failedToAddParticipantsSingularDetailsOfflineForTooLong': `[bold]{name}[/bold] could not be added to the group.`;
'featureConfigChangeModalApplock': `Mandatory app lock is now disabled. You do not need a passcode or biometric authentication when returning to the app.`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ describe('MLSService', () => {
const {failures, keyPackages} = await mlsService.getKeyPackagesPayload(users);

expect(failures).toEqual([
{reason: AddUsersFailureReasons.OFFLINE_FOR_TOO_LONG, users: [users[1]]},
{reason: AddUsersFailureReasons.NOT_MLS_CAPABLE, users: [users[1]]},
{reason: AddUsersFailureReasons.UNREACHABLE_BACKENDS, users: [users[0]], backends: [users[1].domain]},
]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ export class MLSService extends TypedEventEmitter<Events> {
const failures: AddUsersFailure[] = [];

if (emptyKeyPackagesUsers.length > 0) {
failures.push({reason: AddUsersFailureReasons.OFFLINE_FOR_TOO_LONG, users: emptyKeyPackagesUsers});
failures.push({reason: AddUsersFailureReasons.NOT_MLS_CAPABLE, users: emptyKeyPackagesUsers});
}

if (failedToFetchKeyPackages.length > 0) {
Expand Down
Loading