A lot of updates

This commit is contained in:
WolverinDEV
2020-02-22 14:14:44 +01:00
parent 41d3d30386
commit 86942e45c9
7 changed files with 43 additions and 17 deletions
+2 -8
View File
@@ -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);