handle USER_STATUS_CHANGED event
This commit is contained in:
parent
dca5e18cb3
commit
26ca0c7076
|
@ -494,6 +494,10 @@ export default {
|
|||
APP.UI.updateRecordingState(status);
|
||||
});
|
||||
|
||||
room.on(ConferenceEvents.USER_STATUS_CHANGED, function (id, status) {
|
||||
APP.UI.updateUserStatus(id, status);
|
||||
});
|
||||
|
||||
room.on(ConferenceEvents.KICKED, () => {
|
||||
APP.UI.notifyKicked();
|
||||
// FIXME close
|
||||
|
|
|
@ -425,10 +425,9 @@ UI.removeUser = function (id, displayName) {
|
|||
VideoLayout.removeParticipantContainer(id);
|
||||
};
|
||||
|
||||
//FIXME: NOT USED. Should start using the lib
|
||||
// function onMucPresenceStatus(jid, info) {
|
||||
// VideoLayout.setPresenceStatus(Strophe.getResourceFromJid(jid), info.status);
|
||||
// }
|
||||
UI.updateUserStatus = function (id, status) {
|
||||
VideoLayout.setPresenceStatus(id, status);
|
||||
};
|
||||
|
||||
UI.onPeerVideoTypeChanged = (id, newVideoType) => {
|
||||
VideoLayout.onVideoTypeChanged(id, newVideoType);
|
||||
|
|
|
@ -387,8 +387,8 @@ var VideoLayout = {
|
|||
/**
|
||||
* Shows the presence status message for the given video.
|
||||
*/
|
||||
setPresenceStatus (resourceJid, statusMsg) {
|
||||
remoteVideos[resourceJid].setPresenceStatus(statusMsg);
|
||||
setPresenceStatus (id, statusMsg) {
|
||||
remoteVideos[id].setPresenceStatus(statusMsg);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue