Skip to content

Commit

Permalink
dont check troubleshooting setting
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego committed Sep 18, 2023
1 parent 6d49ccf commit 8d68ec5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ee/packages/presence/src/Presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,9 @@ export class Presence extends ServiceClass implements IPresence {
if (module === 'scalability') {
this.hasLicense = valid;

// broadcast should always be enabled if license is active (unless the troubleshoot setting is on)
if (!this.broadcastEnabled && valid) {
// broadcast should always be enabled if license is active (unless the troubleshoot setting is on)
const presenceBroadcastDisabled = await Settings.findOneById('Troubleshoot_Disable_Presence_Broadcast');
if (presenceBroadcastDisabled?.value === false) {
await this.toggleBroadcast(true);
}
await this.toggleBroadcast(true);
}
}
});
Expand Down

0 comments on commit 8d68ec5

Please sign in to comment.