mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Notifications for a few merge-related scenarios
This commit is contained in:
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,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user