The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/server/startup/presenceTroubleshoot.ts

12 lines
382 B

import { Presence } from '@rocket.chat/core-services';
import { settings } from '../../app/settings/server';
// maybe this setting should disable the listener to 'presence.status' event on listerners.module.ts
settings.watch('Troubleshoot_Disable_Presence_Broadcast', async function (value) {
try {
await Presence.toggleBroadcast(!value);
} catch (e) {
// do nothing
}
});