mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 13:54:39 +01:00
Do not drop duplicate message ID updates if they're edited messages
This commit is contained in:
parent
8a04c809f8
commit
7e4227e3de
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit 06370b82769bf4182fe5919e2f3f5f37efc8b5a0
|
||||
Subproject commit 3be943981f47b1e140c271fef2bc49a99b40f93e
|
@ -450,7 +450,7 @@ trait UpdateHandler
|
||||
|
||||
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'])) {
|
||||
$this->logger->logger('Duplicate update by message id, channel id: '.$channel_id, \danog\MadelineProto\Logger::ERROR);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user