Improve Game::is_empty method name.

This commit is contained in:
levlam 2021-09-02 16:35:56 +03:00
parent 7135caa2be
commit 895d7f68d8
3 changed files with 3 additions and 3 deletions

View File

@ -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();
}

View File

@ -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);

View File

@ -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;
}