From c20bf7aeb10db35db64b2226f03a05f686655bac Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 16 Feb 2026 11:58:26 +0400 Subject: [PATCH] Center the keyboard button icon without text. --- Telegram/SourceFiles/history/history_item_components.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history_item_components.cpp b/Telegram/SourceFiles/history/history_item_components.cpp index fc05c7fbba..ced24a53f3 100644 --- a/Telegram/SourceFiles/history/history_item_components.cpp +++ b/Telegram/SourceFiles/history/history_item_components.cpp @@ -783,7 +783,10 @@ ReplyKeyboard::ReplyKeyboard( auto result = TextWithEntities(); if (const auto iconId = row[j].visual.iconId) { using namespace Data; - result.append(SingleCustomEmoji(iconId)).append(' '); + result.append(SingleCustomEmoji(iconId)); + if (!text.isEmpty()) { + result.append(' '); + } } if (type == Type::Buy) { auto firstPart = true;