|
@@ -151,6 +151,7 @@ JitsiConference.prototype.removeCommand = function (name) {
|
151
|
151
|
*/
|
152
|
152
|
JitsiConference.prototype.setDisplayName = function(name) {
|
153
|
153
|
this.room.addToPresence("nick", {attributes: {xmlns: 'http://jabber.org/protocol/nick'}, value: name});
|
|
154
|
+ this.room.sendPresence();
|
154
|
155
|
}
|
155
|
156
|
|
156
|
157
|
/**
|
|
@@ -249,6 +250,11 @@ function setupListeners(conference) {
|
249
|
250
|
conference.room.addListener(XMPPEvents.MUC_MEMBER_LEFT,function (jid) {
|
250
|
251
|
conference.eventEmitter.emit(JitsiConferenceEvents.USER_LEFT, Strophe.getResourceFromJid(jid));
|
251
|
252
|
});
|
|
253
|
+
|
|
254
|
+ conference.room.addListener(XMPPEvents.DISPLAY_NAME_CHANGED, function (from, displayName) {
|
|
255
|
+ conference.eventEmitter.emit(JitsiConferenceEvents.DISPLAY_NAME_CHANGED,
|
|
256
|
+ Strophe.getResourceFromJid(from), displayName);
|
|
257
|
+ });
|
252
|
258
|
}
|
253
|
259
|
|
254
|
260
|
|