Suppress logging of MESSAGE_DELETE_FORBIDDEN errors.
GitOrigin-RevId: f131ae1323ba35367198f7b3e45f653bf84c29dd
This commit is contained in:
parent
29c81b4252
commit
62a9eac907
@ -3055,7 +3055,8 @@ class DeleteChannelMessagesQuery : public Td::ResultHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void on_error(uint64 id, Status status) override {
|
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;
|
LOG(ERROR) << "Receive error for delete channel messages: " << status;
|
||||||
}
|
}
|
||||||
promise_.set_error(std::move(status));
|
promise_.set_error(std::move(status));
|
||||||
|
Reference in New Issue
Block a user