Improve Game::is_empty method name.
This commit is contained in:
parent
7135caa2be
commit
895d7f68d8
@ -61,7 +61,7 @@ Game::Game(UserId bot_user_id, string short_name) : bot_user_id_(bot_user_id), s
|
||||
photo_.id = 0; // to prevent null photo in td_api
|
||||
}
|
||||
|
||||
bool Game::empty() const {
|
||||
bool Game::is_empty() const {
|
||||
return short_name_.empty();
|
||||
}
|
||||
|
||||
|
@ -51,7 +51,7 @@ class Game {
|
||||
|
||||
Game(UserId bot_user_id, string short_name);
|
||||
|
||||
bool empty() const;
|
||||
bool is_empty() const;
|
||||
|
||||
void set_bot_user_id(UserId bot_user_id);
|
||||
|
||||
|
@ -4172,7 +4172,7 @@ unique_ptr<MessageContent> get_message_content(Td *td, FormattedText message,
|
||||
auto message_game = move_tl_object_as<telegram_api::messageMediaGame>(media);
|
||||
|
||||
auto m = make_unique<MessageGame>(Game(td, std::move(message_game->game_), owner_dialog_id));
|
||||
if (m->game.empty()) {
|
||||
if (m->game.is_empty()) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user