Outgoing call: Show safety number dialog if change detected

This commit is contained in:
Josh Perez 2020-08-26 16:30:10 -04:00 committed by Josh Perez
parent 45d829e439
commit 25dabd56fd
6 changed files with 61 additions and 12 deletions

View file

@ -13,6 +13,7 @@ type SafetyNumberProps = {
};
export type Props = {
readonly confirmText?: string;
readonly contacts: Array<ConversationType>;
readonly i18n: LocalizerType;
readonly onCancel: () => void;
@ -25,6 +26,7 @@ type SafetyDialogContentProps = Props & {
};
const SafetyDialogContents = ({
confirmText,
contacts,
i18n,
onCancel,
@ -107,7 +109,7 @@ const SafetyDialogContents = ({
onClick={onConfirm}
tabIndex={0}
>
{i18n('sendMessageToContact')}
{confirmText || i18n('sendMessageToContact')}
</button>
</div>
</>