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/app/livechat/server/visitorStatus.js

12 lines
359 B

import { Meteor } from 'meteor/meteor';
import { UserPresenceEvents } from 'meteor/konecty:user-presence';
import { Livechat } from './lib/Livechat';
Meteor.startup(() => {
UserPresenceEvents.on('setStatus', (session, status, metadata) => {
if (metadata && metadata.visitor) {
Livechat.notifyGuestStatusChanged(metadata.visitor, status);
}
});
});