A lot of updates
This commit is contained in:
@@ -560,14 +560,8 @@ bool ConnectedClient::notifyClientNeededPermissions() {
|
||||
cache_lock.unlock();
|
||||
|
||||
for(const auto& value : permissions) {
|
||||
if(value.second.has_value) {
|
||||
cmd[index]["permid"] = value.first;
|
||||
cmd[index++]["permvalue"] = value.second.value;
|
||||
}
|
||||
}
|
||||
if(permissions.empty()) {
|
||||
cmd[0]["permid"] = permission::b_client_force_push_to_talk;
|
||||
cmd[0]["permvalue"] = false;
|
||||
cmd[index]["permid"] = value.first;
|
||||
cmd[index++]["permvalue"] = value.second.has_value ? value.second.value : 0;
|
||||
}
|
||||
|
||||
this->sendCommand(cmd);
|
||||
|
||||
Reference in New Issue
Block a user