Print a nicer log message on participant join/part

This makes the logs more readable.
pull/3338/head
linkmauve 6 years ago committed by Saúl Ibarra Corretgé
parent 1d99abc4a4
commit faada0abae
  1. 4
      conference.js

@ -1678,7 +1678,7 @@ export default {
role: user.getRole()
}));
logger.log('USER %s connnected', id, user);
logger.log(`USER ${id} connnected:`, user);
APP.API.notifyUserJoined(id, {
displayName,
formattedDisplayName: appendSuffix(
@ -1698,7 +1698,7 @@ export default {
}
APP.store.dispatch(participantLeft(id, room));
logger.log('USER %s LEFT', id, user);
logger.log(`USER ${id} LEFT:`, user);
APP.API.notifyUserLeft(id);
APP.UI.messageHandler.participantNotification(
user.getDisplayName(),

Loading…
Cancel
Save