Fix TODO in can_resend_message.

GitOrigin-RevId: 87830112e4e9f711774615d0038271892958a191
This commit is contained in:
levlam 2020-01-15 02:58:34 +03:00
parent 7ffd9ad7c9
commit d6b87bd121

View File

@ -19433,9 +19433,11 @@ bool MessagesManager::can_resend_message(const Message *m) {
// via bot message
if (content_type == MessageContentType::Game &&
!get_message_content_game_bot_user_id(m->content.get()).is_valid()) {
// TODO implement resending via_bot messages other than games
return false;
}
// resend via_bot message as an ordinary message if error code is 429
// TODO support other error codes
}
if (content_type == MessageContentType::ChatSetTtl || content_type == MessageContentType::ScreenshotTaken) {