From 67f427af73b7fd130b3d1ce7da761e0b26b97926 Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 16 Aug 2019 02:59:03 +0300 Subject: [PATCH] Allow to resend messages, which failed to send, because they are too old. GitOrigin-RevId: d9cbfb1433580e3214d81dac443b1d5ba43f818f --- td/telegram/MessagesManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 02bf29e0..b5d7133e 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -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) {