Allow to resend messages, which failed to send, because they are too old.

GitOrigin-RevId: d9cbfb1433580e3214d81dac443b1d5ba43f818f
This commit is contained in:
levlam 2019-08-16 02:59:03 +03:00
parent 25d4e27b3d
commit 67f427af73

View File

@ -17353,7 +17353,7 @@ bool MessagesManager::can_edit_message(DialogId dialog_id, const Message *m, boo
}
bool MessagesManager::can_resend_message(const Message *m) {
if (m->send_error_code != 429) {
if (m->send_error_code != 429 && m->send_error_message != "Message is too old to be re-sent automatically") {
return false;
}
if (m->is_bot_start_message) {