Showing the changes to libraries/script-engine/src/UsersScriptingInterface.cpp (1 of 9 files). Show all
Unified · Split
| @@ -21,7 +21,6 @@ UsersScriptingInterface::UsersScriptingInterface() { · 20 unmodified lines | ||
| 21 | 21 | connect(nodeList.data(), &NodeList::usernameFromIDReply, this, &UsersScriptingInterface::usernameFromIDReply); |
| 22 | 22 | connect(nodeList.data(), &NodeList::ignoredNode, this, &UsersScriptingInterface::ignoredNode); |
| 23 | 23 | connect(nodeList.data(), &NodeList::unignoredNode, this, &UsersScriptingInterface::unignoredNode); |
| 24 | − connect(nodeList.data(), &NodeList::personalMuteStatusReply, this, &UsersScriptingInterface::personalMuteStatusReply); | |
| 25 | 24 | } |
| 26 | 25 | |
| 27 | 26 | void UsersScriptingInterface::ignore(const QUuid& nodeID, bool ignoreEnabled) { |
| @@ -40,9 +39,9 @@ void UsersScriptingInterface::personalMute(const QUuid& nodeID, bool muteEnabled · 12 unmodified lines | ||
| 40 | 39 | DependencyManager::get<NodeList>()->personalMuteNodeBySessionID(nodeID, muteEnabled); |
| 41 | 40 | } |
| 42 | 41 | |
| 43 | −void UsersScriptingInterface::requestPersonalMuteStatus(const QUuid& nodeID) { | |
| 44 | − // ask the Audio Mixer via the NodeList for the Personal Mute status associated with the given session ID | |
| 45 | − DependencyManager::get<NodeList>()->requestPersonalMuteStatus(nodeID); | |
| 42 | +bool UsersScriptingInterface::getPersonalMuteStatus(const QUuid& nodeID) { | |
| 43 | + // ask the NodeList for the Personal Mute status associated with the given session ID | |
| 44 | + return DependencyManager::get<NodeList>()->isPersonalMutingNode(nodeID); | |
| 46 | 45 | } |
| 47 | 46 | |
| 48 | 47 | void UsersScriptingInterface::kick(const QUuid& nodeID) { |