diff --git a/td/telegram/Game.cpp b/td/telegram/Game.cpp index 7775f7c0e..f277525ae 100644 --- a/td/telegram/Game.cpp +++ b/td/telegram/Game.cpp @@ -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(); } diff --git a/td/telegram/Game.h b/td/telegram/Game.h index 1333e268e..5e30e3082 100644 --- a/td/telegram/Game.h +++ b/td/telegram/Game.h @@ -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); diff --git a/td/telegram/MessageContent.cpp b/td/telegram/MessageContent.cpp index 492e8efe2..784ba85b5 100644 --- a/td/telegram/MessageContent.cpp +++ b/td/telegram/MessageContent.cpp @@ -4172,7 +4172,7 @@ unique_ptr get_message_content(Td *td, FormattedText message, auto message_game = move_tl_object_as(media); auto m = make_unique(Game(td, std::move(message_game->game_), owner_dialog_id)); - if (m->game.empty()) { + if (m->game.is_empty()) { break; }