Deprecate phone number discovery notification
This commit is contained in:
parent
63509b8965
commit
d7b09b9703
21 changed files with 196 additions and 517 deletions
|
@ -1,29 +0,0 @@
|
|||
// Copyright 2020 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