mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix controls layout after adding a bot to a group.
Fixes https://bugs.telegram.org/c/19451
This commit is contained in:
parent
5a2667c71e
commit
20a5e0ba73
1 changed files with 4 additions and 1 deletions
|
@ -6469,8 +6469,11 @@ void HistoryWidget::updateBotKeyboard(History *h, bool force) {
|
|||
: nullptr;
|
||||
changed = _keyboard->updateMarkup(keyboardItem, force);
|
||||
}
|
||||
updateCmdStartShown();
|
||||
const auto controlsChanged = updateCmdStartShown();
|
||||
if (!changed) {
|
||||
if (controlsChanged) {
|
||||
updateControlsGeometry();
|
||||
}
|
||||
return;
|
||||
} else if (_keyboard->forMsgId() != wasMsgId) {
|
||||
_kbScroll->scrollTo({ 0, 0 });
|
||||
|
|
Loading…
Add table
Reference in a new issue