Improve error message on access to a closed secret chat.

This commit is contained in:
levlam 2021-03-29 21:26:31 +03:00
parent 732193b346
commit 224b560c83

View File

@ -1963,7 +1963,7 @@ void SecretChatActor::start_up() {
auth_state_ = r_auth_state.move_as_ok(); auth_state_ = r_auth_state.move_as_ok();
} }
if (!can_be_empty_ && auth_state_.state == State::Empty) { if (!can_be_empty_ && auth_state_.state == State::Empty) {
LOG(WARNING) << "Close Secret chat because it is empty"; LOG(INFO) << "Skip creation of empty secret chat " << auth_state_.id;
return stop(); return stop();
} }
if (auth_state_.state == State::Closed) { if (auth_state_.state == State::Closed) {