Silence MESSAGE_NOT_MODIFIED for regular users.
GitOrigin-RevId: 4cab24b760b68f378f48aeaed321889a2f3fa2ac
This commit is contained in:
parent
d64280c890
commit
40144546bb
@ -2359,6 +2359,9 @@ class EditMessageActor : public NetActorOnce {
|
|||||||
|
|
||||||
void on_error(uint64 id, Status status) override {
|
void on_error(uint64 id, Status status) override {
|
||||||
LOG(INFO) << "Receive error for editMessage: " << status;
|
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");
|
td->messages_manager_->on_get_dialog_error(dialog_id_, status, "EditMessageActor");
|
||||||
promise_.set_error(std::move(status));
|
promise_.set_error(std::move(status));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user