Notifications for a few merge-related scenarios
This commit is contained in:
parent
78ce34b9d3
commit
a49a6f2057
40 changed files with 2764 additions and 553 deletions
25
ts/util/getStringForConversationMerge.ts
Normal file
25
ts/util/getStringForConversationMerge.ts
Normal file
|
@ -0,0 +1,25 @@
|
|||
// Copyright 2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { LocalizerType } from '../types/Util';
|
||||
|
||||
export function getStringForConversationMerge({
|
||||
obsoleteConversationTitle,
|
||||
conversationTitle,
|
||||
i18n,
|
||||
}: {
|
||||
obsoleteConversationTitle: string | undefined;
|
||||
conversationTitle: string;
|
||||
i18n: LocalizerType;
|
||||
}): string {
|
||||
if (!obsoleteConversationTitle) {
|
||||
return i18n('icu:ConversationMerge--notification--no-e164', {
|
||||
conversationTitle,
|
||||
});
|
||||
}
|
||||
|
||||
return i18n('icu:ConversationMerge--notification', {
|
||||
obsoleteConversationTitle,
|
||||
conversationTitle,
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue