Silence MESSAGE_NOT_MODIFIED for regular users.

GitOrigin-RevId: 4cab24b760b68f378f48aeaed321889a2f3fa2ac
This commit is contained in:
levlam 2018-03-04 02:09:08 +03:00
parent d64280c890
commit 40144546bb

View File

@ -2359,6 +2359,9 @@ class EditMessageActor : public NetActorOnce {
void on_error(uint64 id, Status status) override {
LOG(INFO) << "Receive error for editMessage: " << status;
if (!td->auth_manager_->is_bot() && status.message() == "MESSAGE_NOT_MODIFIED") {
return promise_.set_value(Unit());
}
td->messages_manager_->on_get_dialog_error(dialog_id_, status, "EditMessageActor");
promise_.set_error(std::move(status));
}