Show Session Switchover Events
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
parent
70cd073a72
commit
dd2493a353
13 changed files with 455 additions and 17 deletions
29
ts/util/getStringForPhoneNumberDiscovery.ts
Normal file
29
ts/util/getStringForPhoneNumberDiscovery.ts
Normal file
|
@ -0,0 +1,29 @@
|
|||
// Copyright 2023 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { LocalizerType } from '../types/Util';
|
||||
|
||||
export function getStringForPhoneNumberDiscovery({
|
||||
phoneNumber,
|
||||
i18n,
|
||||
conversationTitle,
|
||||
sharedGroup,
|
||||
}: {
|
||||
phoneNumber: string;
|
||||
i18n: LocalizerType;
|
||||
conversationTitle: string;
|
||||
sharedGroup?: string;
|
||||
}): string {
|
||||
if (sharedGroup) {
|
||||
return i18n('icu:PhoneNumberDiscovery--notification--withSharedGroup', {
|
||||
phoneNumber,
|
||||
conversationTitle,
|
||||
sharedGroup,
|
||||
});
|
||||
}
|
||||
|
||||
return i18n('icu:PhoneNumberDiscovery--notification--noSharedGroup', {
|
||||
phoneNumber,
|
||||
conversationTitle,
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue