mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 07:25:46 +00:00
Make keyboard fully shown with media.
This commit is contained in:
@@ -3869,6 +3869,9 @@ int Message::minWidthForMedia() const {
|
|||||||
accumulate_max(result, added + st::semiboldFont->width(
|
accumulate_max(result, added + st::semiboldFont->width(
|
||||||
tr::lng_replies_view_original(tr::now)));
|
tr::lng_replies_view_original(tr::now)));
|
||||||
}
|
}
|
||||||
|
if (const auto keyboard = data()->inlineReplyKeyboard()) {
|
||||||
|
accumulate_max(result, keyboard->naturalWidth());
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user