Adds the user agent in the presence.

This commit is contained in:
George Politis 2014-12-11 13:02:45 +01:00
parent a1624138fe
commit e8779eeb18
1 changed files with 3 additions and 0 deletions

3
muc.js
View File

@ -354,6 +354,9 @@ Strophe.addConnectionPlugin('emuc', {
pres.c('c', connection.caps.generateCapsAttrs()).up(); pres.c('c', connection.caps.generateCapsAttrs()).up();
} }
pres.c('user-agent', {xmlns: 'http://jitsi.org/jitmeet/user-agent'})
.t(navigator.userAgent).up();
if(this.presMap['bridgeIsDown']) { if(this.presMap['bridgeIsDown']) {
pres.c('bridgeIsDown').up(); pres.c('bridgeIsDown').up();
} }