diff --git a/interface/src/avatar/MyAvatar.cpp b/interface/src/avatar/MyAvatar.cpp index e51390f9d0..5f1b81fb14 100644 --- a/interface/src/avatar/MyAvatar.cpp +++ b/interface/src/avatar/MyAvatar.cpp @@ -1897,7 +1897,12 @@ void MyAvatar::resetSize() { void MyAvatar::goToLocationFromResponse(const QJsonObject& jsonObject) { QJsonObject locationObject = jsonObject["data"].toObject()["address"].toObject(); - goToLocationFromAddress(locationObject); + bool isOnline = jsonObject["data"].toObject()["online"].toBool(); + if (isOnline ) { + goToLocationFromAddress(locationObject); + } else { + QMessageBox::warning(Application::getInstance()->getWindow(), "", "The user is not online."); + } } void MyAvatar::goToLocationFromAddress(const QJsonObject& locationObject) {