mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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;
|
: nullptr;
|
||||||
changed = _keyboard->updateMarkup(keyboardItem, force);
|
changed = _keyboard->updateMarkup(keyboardItem, force);
|
||||||
}
|
}
|
||||||
updateCmdStartShown();
|
const auto controlsChanged = updateCmdStartShown();
|
||||||
if (!changed) {
|
if (!changed) {
|
||||||
|
if (controlsChanged) {
|
||||||
|
updateControlsGeometry();
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
} else if (_keyboard->forMsgId() != wasMsgId) {
|
} else if (_keyboard->forMsgId() != wasMsgId) {
|
||||||
_kbScroll->scrollTo({ 0, 0 });
|
_kbScroll->scrollTo({ 0, 0 });
|
||||||
|
|
Loading…
Add table
Reference in a new issue