mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 14:46:12 -04:00
Don't check visibility for equality in the service.
PiperOrigin-RevId: 655237350
This commit is contained in:
committed by
Copybara-Service
parent
9ea22bb1e4
commit
cdc55f9e83
@@ -1040,10 +1040,6 @@ void NearbySharingServiceImpl::SetVisibility(
|
||||
"api_set_visibility",
|
||||
[this, visibility, expiration, callback = std::move(callback)]() mutable {
|
||||
NL_LOG(INFO) << __func__ << ": SetVisibility is called";
|
||||
if (settings_->GetVisibility() == visibility) {
|
||||
std::move(callback)(StatusCodes::kOk);
|
||||
return;
|
||||
}
|
||||
if (account_manager_.GetCurrentAccount() == std::nullopt) {
|
||||
switch (visibility) {
|
||||
case proto::DeviceVisibility::DEVICE_VISIBILITY_EVERYONE:
|
||||
|
||||
Reference in New Issue
Block a user