mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fixed regression with missing play button in list mode for inline bots.
This commit is contained in:
@@ -99,11 +99,18 @@ std::unique_ptr<ItemBase> ItemBase::createLayout(
|
||||
|
||||
if (gallery.has_value()) {
|
||||
if (!*gallery) {
|
||||
// Force list mode: render all types as Article.
|
||||
return std::make_unique<internal::Article>(
|
||||
context,
|
||||
std::move(result),
|
||||
forceThumb);
|
||||
// Force list mode: render gallery types as Article.
|
||||
switch (result->_type) {
|
||||
case Type::Photo:
|
||||
case Type::Sticker:
|
||||
case Type::Gif:
|
||||
return std::make_unique<internal::Article>(
|
||||
context,
|
||||
std::move(result),
|
||||
forceThumb);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
// Force gallery mode: render list types as Thumbnail.
|
||||
switch (result->_type) {
|
||||
|
||||
Reference in New Issue
Block a user