Showing the changes to libraries/script-engine/src/UsersScriptingInterface.cpp (1 of 6 files). Show all
Unified · Split
| @@ -20,7 +20,7 @@ void UsersScriptingInterface::ignore(const QUuid& nodeID) { · 19 unmodified lines | ||
| 20 | 20 | // enumerate the nodes to send a reliable ignore packet to each that can leverage it |
| 21 | 21 | auto nodeList = DependencyManager::get<NodeList>(); |
| 22 | 22 | |
| 23 | − if (nodeList->getSessionUUID() != nodeID) { | |
| 23 | + if (!nodeID.isNull() && nodeList->getSessionUUID() != nodeID) { | |
| 24 | 24 | nodeList->eachMatchingNode([&nodeID](const SharedNodePointer& node)->bool { |
| 25 | 25 | if (node->getType() == NodeType::AudioMixer || node->getType() == NodeType::AvatarMixer) { |
| 26 | 26 | return true; |
| @@ -42,7 +42,6 @@ void UsersScriptingInterface::ignore(const QUuid& nodeID) { · 15 unmodified lines | ||
| 42 | 42 | |
| 43 | 43 | emit ignoredNode(nodeID); |
| 44 | 44 | } else { |
| 45 | − qWarning() << "UsersScriptingInterface was asked to ignore a node ID which matches the current session ID, " | |
| 46 | − << "but self-ignore has no meaning."; | |
| 45 | + qWarning() << "UsersScriptingInterface::ignore called with an invalid ID or an ID which matches the current session ID."; | |
| 47 | 46 | } |
| 48 | 47 | } |