Fixed missing join permission recalculation after server group update

This commit is contained in:
WolverinDEV 2021-05-26 13:48:42 +02:00
parent bfeee49507
commit 1e7738bd24

View File

@ -474,6 +474,9 @@ command_result ConnectedClient::handleCommandServerGroupAddClient(Command &cmd)
bool groups_changed;
updated_client->update_displayed_client_groups(groups_changed, groups_changed);
/* join permissions have changed */
updated_client->join_state_id++;
if(groups_changed) {
updated_client->task_update_needed_permissions.enqueue();
updated_client->task_update_channel_client_properties.enqueue();
@ -598,6 +601,9 @@ command_result ConnectedClient::handleCommandServerGroupDelClient(Command &cmd)
bool groups_changed;
updated_client->update_displayed_client_groups(groups_changed, groups_changed);
/* join permissions have changed */
updated_client->join_state_id++;
if(groups_changed) {
updated_client->task_update_needed_permissions.enqueue();
updated_client->task_update_channel_client_properties.enqueue();