mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 10:29:01 +02:00
Make inspection cert work
This commit is contained in:
parent
b335ba9a75
commit
56cb98d96f
2 changed files with 20 additions and 23 deletions
|
@ -67,9 +67,8 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
onUpdateCertificateStatus: {
|
onUpdateCertificateStatus: {
|
||||||
if (root.certificateId === certID) {
|
|
||||||
if (certStatus === 1) { // CERTIFICATE_STATUS_VERIFICATION_SUCCESS
|
if (certStatus === 1) { // CERTIFICATE_STATUS_VERIFICATION_SUCCESS
|
||||||
|
// NOP
|
||||||
} else if (certStatus === 2) { // CERTIFICATE_STATUS_VERIFICATION_TIMEOUT
|
} else if (certStatus === 2) { // CERTIFICATE_STATUS_VERIFICATION_TIMEOUT
|
||||||
errorText.text = "Verification of this certificate timed out.";
|
errorText.text = "Verification of this certificate timed out.";
|
||||||
errorText.color = hifi.colors.redHighlight;
|
errorText.color = hifi.colors.redHighlight;
|
||||||
|
@ -90,7 +89,6 @@ Rectangle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
onCertificateIdChanged: {
|
onCertificateIdChanged: {
|
||||||
if (certificateId !== "") {
|
if (certificateId !== "") {
|
||||||
|
|
|
@ -279,8 +279,7 @@ void ContextOverlayInterface::openInspectionCertificate() {
|
||||||
QUuid nodeToChallenge = entityProperties.getOwningAvatarID();
|
QUuid nodeToChallenge = entityProperties.getOwningAvatarID();
|
||||||
auto nodeList = DependencyManager::get<NodeList>();
|
auto nodeList = DependencyManager::get<NodeList>();
|
||||||
|
|
||||||
// ZRF FIXME: Don't challenge ownership of avatar entities that I own
|
if (entityProperties.getClientOnly()) {
|
||||||
if (entityProperties.getClientOnly()/* && nodeToChallenge != nodeList->getSessionUUID()*/) {
|
|
||||||
if (entityProperties.verifyStaticCertificateProperties()) {
|
if (entityProperties.verifyStaticCertificateProperties()) {
|
||||||
SharedNodePointer entityServer = nodeList->soloNodeOfType(NodeType::EntityServer);
|
SharedNodePointer entityServer = nodeList->soloNodeOfType(NodeType::EntityServer);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue