Suppress logging of MESSAGE_DELETE_FORBIDDEN errors.

GitOrigin-RevId: f131ae1323ba35367198f7b3e45f653bf84c29dd
This commit is contained in:
levlam 2020-03-31 02:17:57 +03:00
parent 29c81b4252
commit 62a9eac907

View File

@ -3055,7 +3055,8 @@ class DeleteChannelMessagesQuery : public Td::ResultHandler {
}
void on_error(uint64 id, Status status) override {
if (!td->contacts_manager_->on_get_channel_error(channel_id_, status, "DeleteChannelMessagesQuery")) {
if (!td->contacts_manager_->on_get_channel_error(channel_id_, status, "DeleteChannelMessagesQuery") &&
status.message() != "MESSAGE_DELETE_FORBIDDEN") {
LOG(ERROR) << "Receive error for delete channel messages: " << status;
}
promise_.set_error(std::move(status));