1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 13:14:40 +01:00

Do not drop duplicate message ID updates if they're edited messages

This commit is contained in:
Daniil Gentili 2018-04-26 12:18:43 +02:00
parent 8a04c809f8
commit 7e4227e3de
2 changed files with 2 additions and 2 deletions

2
docs

@ -1 +1 @@
Subproject commit 06370b82769bf4182fe5919e2f3f5f37efc8b5a0 Subproject commit 3be943981f47b1e140c271fef2bc49a99b40f93e

View File

@ -450,7 +450,7 @@ trait UpdateHandler
return false; return false;
} }
if (isset($update['message']['id'], $update['message']['to_id'])) { if (isset($update['message']['id'], $update['message']['to_id']) && !in_array($update['_'], ['updateEditMessage', 'updateEditChannelMessage'])) {
if (!$this->check_msg_id($update['message'])) { if (!$this->check_msg_id($update['message'])) {
$this->logger->logger('Duplicate update by message id, channel id: '.$channel_id, \danog\MadelineProto\Logger::ERROR); $this->logger->logger('Duplicate update by message id, channel id: '.$channel_id, \danog\MadelineProto\Logger::ERROR);