From 7668a0a7f3efeaeeaf60534872440a23e9e6c1f0 Mon Sep 17 00:00:00 2001 From: arrshad Date: Sat, 3 Aug 2024 18:59:39 +0330 Subject: [PATCH] Change reply rectangle height and color for sticker messages to match Telegram style --- utils/quote-generate.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/quote-generate.js b/utils/quote-generate.js index f644203..99f2ebe 100644 --- a/utils/quote-generate.js +++ b/utils/quote-generate.js @@ -858,7 +858,8 @@ class QuoteGenerate { let rect if (mediaType === 'sticker' && (name || replyName)) { - rectHeight -= mediaHeight + indent * 2 + rectHeight = (replyName.height + replyText.height * 0.5) + indent * 2 + backgroundColorOne = backgroundColorTwo = 'rgba(0, 0, 0, 0.5)' } if (mediaType !== 'sticker' || name || replyName) {