Skip to content

Commit

Permalink
Change reply rectangle height and color for sticker messages to match…
Browse files Browse the repository at this point in the history
… Telegram style
  • Loading branch information
arrshad committed Aug 3, 2024
1 parent b4d4139 commit 7668a0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/quote-generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7668a0a

Please sign in to comment.