mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix reactions layout for large emoji messages.
This commit is contained in:
parent
b3858d5d97
commit
98af2d3006
1 changed files with 11 additions and 0 deletions
|
@ -508,12 +508,23 @@ auto Message::takeReactionAnimations()
|
|||
QSize Message::performCountOptimalSize() {
|
||||
const auto item = data();
|
||||
const auto markup = item->inlineReplyMarkup();
|
||||
const auto reactionsKey = [&] {
|
||||
return embedReactionsInBottomInfo()
|
||||
? 0
|
||||
: embedReactionsInBubble()
|
||||
? 1
|
||||
: 2;
|
||||
};
|
||||
const auto oldKey = reactionsKey();
|
||||
refreshIsTopicRootReply();
|
||||
validateText();
|
||||
validateInlineKeyboard(markup);
|
||||
updateViewButtonExistence();
|
||||
refreshTopicButton();
|
||||
updateMediaInBubbleState();
|
||||
if (oldKey != reactionsKey()) {
|
||||
refreshReactions();
|
||||
}
|
||||
refreshRightBadge();
|
||||
refreshInfoSkipBlock();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue