mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-11-05 19:47:20 +01:00
Fix check for self-destructing messages.
This commit is contained in:
parent
7fd2c2a22d
commit
def3e84f12
@ -8853,7 +8853,7 @@ bool Client::need_skip_update_message(int64 chat_id, const object_ptr<td_api::me
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (message->ttl_ > 0 && message->ttl_expires_in_ == 0) {
|
if (message->ttl_ > 0 && message->ttl_expires_in_ == message->ttl_) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user