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/client/notifications/updateUserState.js

11 lines
367 B

import { Meteor } from 'meteor/meteor';
import { fireGlobalEvent } from '../../app/ui-utils';
import { callbacks } from '../../app/callbacks';
/* fire user state change globally, to listen on desktop electron client */
Meteor.startup(function() {
callbacks.add('userStatusManuallySet', (status) => {
fireGlobalEvent('user-status-manually-set', status);
});
});