From ae0a6e9b9a0a0077f506a478d70c9162dbc38c80 Mon Sep 17 00:00:00 2001 From: Edgard Lorraine Messias Date: Mon, 25 Apr 2022 14:27:45 -0300 Subject: [PATCH] fix: Fixed buttons title --- src/chat/functions/prepareMessageButtons.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/chat/functions/prepareMessageButtons.ts b/src/chat/functions/prepareMessageButtons.ts index bfaed76c48..a9029bba53 100644 --- a/src/chat/functions/prepareMessageButtons.ts +++ b/src/chat/functions/prepareMessageButtons.ts @@ -224,21 +224,21 @@ webpack.onInjected(() => { delete r.locationMessage; } else if (r.conversation) { if (message.title) { - r.templateMessage.hydratedTemplate.hydratedTitleText = r.conversation; - } else { r.templateMessage.hydratedTemplate.hydratedTitleText = message.title; r.templateMessage.hydratedTemplate.hydratedContentText = r.conversation; + } else { + r.templateMessage.hydratedTemplate.hydratedTitleText = r.conversation; } delete r.conversation; } else if (r.extendedTextMessage?.text) { if (message.title) { - r.templateMessage.hydratedTemplate.hydratedTitleText = - r.extendedTextMessage?.text; - } else { r.templateMessage.hydratedTemplate.hydratedTitleText = message.title; r.templateMessage.hydratedTemplate.hydratedContentText = r.extendedTextMessage?.text; + } else { + r.templateMessage.hydratedTemplate.hydratedTitleText = + r.extendedTextMessage?.text; } delete r.extendedTextMessage; } else {