Allow to resend messages, which failed to send, because they are too old.
GitOrigin-RevId: d9cbfb1433580e3214d81dac443b1d5ba43f818f
This commit is contained in:
parent
25d4e27b3d
commit
67f427af73
@ -17353,7 +17353,7 @@ bool MessagesManager::can_edit_message(DialogId dialog_id, const Message *m, boo
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool MessagesManager::can_resend_message(const Message *m) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
if (m->is_bot_start_message) {
|
if (m->is_bot_start_message) {
|
||||||
|
Reference in New Issue
Block a user