Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions td/telegram/CallbackQueriesManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,7 @@ tl_object_ptr<td_api::CallbackQueryPayload> CallbackQueriesManager::get_query_pa
if (has_data) {
return td_api::make_object<td_api::callbackQueryPayloadData>(data.as_slice().str());
}
if (has_game) {
return td_api::make_object<td_api::callbackQueryPayloadGame>(game_short_name);
}
UNREACHABLE();
return nullptr;
return td_api::make_object<td_api::callbackQueryPayloadGame>(game_short_name);
}

void CallbackQueriesManager::on_new_query(int64 callback_query_id, UserId sender_user_id, DialogId dialog_id,
Expand Down