|
@@ -255,9 +255,18 @@ Strophe.addConnectionPlugin('emuc', {
|
255
|
255
|
'>error[type="cancel"]>not-allowed[xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"]').length) {
|
256
|
256
|
var toDomain = Strophe.getDomainFromJid(pres.getAttribute('to'));
|
257
|
257
|
if(toDomain === config.hosts.anonymousdomain) {
|
258
|
|
- // we are connected with anonymous domain and only non anonymous users can create rooms
|
259
|
|
- // we must authorize the user
|
260
|
|
- $(document).trigger('passwordrequired.main');
|
|
258
|
+ // We are connected with anonymous domain and only non anonymous
|
|
259
|
+ // users can create rooms, but focus should not allow us to
|
|
260
|
+ // enter the room by replying with 'not-authorized'. This would
|
|
261
|
+ // result in reconnection from authorized domain.
|
|
262
|
+ // We're either missing Jicofo/Prosody config for anonymous
|
|
263
|
+ // domains or something is wrong.
|
|
264
|
+ //$(document).trigger('passwordrequired.main');
|
|
265
|
+ UI.messageHandler.openReportDialog(null,
|
|
266
|
+ 'Oops ! We couldn`t join the conference.' +
|
|
267
|
+ ' There might be some problem with security' +
|
|
268
|
+ ' configuration. Please contact service' +
|
|
269
|
+ ' administrator.', pres);
|
261
|
270
|
} else {
|
262
|
271
|
console.warn('onPresError ', pres);
|
263
|
272
|
UI.messageHandler.openReportDialog(null,
|