mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-29 12:53:35 +01:00
Deprecate phone number discovery notification
This commit is contained in:
@@ -5,19 +5,28 @@ import type { LocalizerType } from '../types/Util';
|
||||
|
||||
export function getStringForConversationMerge({
|
||||
obsoleteConversationTitle,
|
||||
obsoleteConversationNumber,
|
||||
conversationTitle,
|
||||
i18n,
|
||||
}: {
|
||||
obsoleteConversationTitle: string | undefined;
|
||||
obsoleteConversationNumber: string | undefined;
|
||||
conversationTitle: string;
|
||||
i18n: LocalizerType;
|
||||
}): string {
|
||||
if (!obsoleteConversationTitle) {
|
||||
return i18n('icu:ConversationMerge--notification--no-e164', {
|
||||
return i18n('icu:ConversationMerge--notification--no-title', {
|
||||
conversationTitle,
|
||||
});
|
||||
}
|
||||
|
||||
if (obsoleteConversationNumber) {
|
||||
return i18n('icu:ConversationMerge--notification--with-e164', {
|
||||
conversationTitle,
|
||||
obsoleteConversationNumber,
|
||||
});
|
||||
}
|
||||
|
||||
return i18n('icu:ConversationMerge--notification', {
|
||||
obsoleteConversationTitle,
|
||||
conversationTitle,
|
||||
|
||||
Reference in New Issue
Block a user