Fix show_in_attach_menu_ flag.

This commit is contained in:
levlam 2023-09-16 01:48:45 +03:00
parent fb7cb1b1d0
commit 03ccaa40aa

View File

@ -590,6 +590,10 @@ void AttachMenuManager::AttachMenuBot::parse(ParserT &parser) {
supports_user_dialogs_ = true;
supports_bot_dialogs_ = true;
}
if (is_added_ && !show_in_attach_menu_ && !show_in_side_menu_ && !has_android_side_menu_icon_file_id &&
!has_ios_side_menu_icon_file_id && !has_macos_side_menu_icon_file_id) {
show_in_attach_menu_ = true;
}
}
class AttachMenuManager::AttachMenuBotsLogEvent {