Merge pull request #16544 from howard-stearns/ignore-anonymous-screenshare-zone-entry

ignore anonymous screenshare zone entry
GHA built so we're good on this.
This commit is contained in:
Shannon Romano 2019-11-26 14:55:33 -08:00 committed by GitHub
commit 7a0ef65278
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3630,6 +3630,9 @@ void DomainServer::processAvatarZonePresencePacket(QSharedPointer<ReceivedMessag
return;
}
QString verifiedUsername = matchingNode->getPermissions().getVerifiedUserName();
if (verifiedUsername.isEmpty()) { // Silently bail for users who are not logged in.
return;
}
static const int SCREENSHARE_EXPIRATION_SECONDS = 24 * 60 * 60;
screensharePresence(zone.isNull() ? "" : zone.toString(), verifiedUsername, SCREENSHARE_EXPIRATION_SECONDS);
}