From a854bfbbe53c1047379e8146d60adccebe7696d5 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Fri, 6 Sep 2024 11:22:04 +1000 Subject: [PATCH] fix: use correct copy and colors for the msg request dialogs --- ts/components/leftpane/overlay/OverlayMessageRequest.tsx | 3 +++ ts/interactions/conversationInteractions.ts | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ts/components/leftpane/overlay/OverlayMessageRequest.tsx b/ts/components/leftpane/overlay/OverlayMessageRequest.tsx index 7bbee50e8..501077cac 100644 --- a/ts/components/leftpane/overlay/OverlayMessageRequest.tsx +++ b/ts/components/leftpane/overlay/OverlayMessageRequest.tsx @@ -86,6 +86,9 @@ export const OverlayMessageRequest = () => { onClickClose: () => { window.inboxStore?.dispatch(updateConfirmModal(null)); }, + okTheme: SessionButtonColor.Danger, + closeTheme: SessionButtonColor.Primary, + okText: window.i18n('clear'), }) ); } diff --git a/ts/interactions/conversationInteractions.ts b/ts/interactions/conversationInteractions.ts index d7a5667d1..99e9bcb54 100644 --- a/ts/interactions/conversationInteractions.ts +++ b/ts/interactions/conversationInteractions.ts @@ -158,8 +158,9 @@ export const declineConversationWithConfirm = ({ }) => { window?.inboxStore?.dispatch( updateConfirmModal({ - okText: blockContact ? window.i18n('block') : window.i18n('decline'), + okText: blockContact ? window.i18n('block') : window.i18n('delete'), cancelText: window.i18n('cancel'), + title: window.i18n('delete'), i18nMessage: { token: 'messageRequestsDelete' }, onClickOk: async () => { await declineConversationWithoutConfirm({ @@ -175,6 +176,8 @@ export const declineConversationWithConfirm = ({ onClickClose: () => { window?.inboxStore?.dispatch(updateConfirmModal(null)); }, + okTheme: SessionButtonColor.Danger, + closeTheme: SessionButtonColor.Primary, }) ); };