|
@@ -4,21 +4,22 @@ import { getLogger } from 'jitsi-meet-logger';
|
4
|
4
|
import { $msg, Strophe } from 'strophe.js';
|
5
|
5
|
import 'strophejs-plugin-disco';
|
6
|
6
|
|
7
|
|
-import RandomUtil from '../util/RandomUtil';
|
8
|
7
|
import * as JitsiConnectionErrors from '../../JitsiConnectionErrors';
|
9
|
8
|
import * as JitsiConnectionEvents from '../../JitsiConnectionEvents';
|
|
9
|
+import XMPPEvents from '../../service/xmpp/XMPPEvents';
|
10
|
10
|
import browser from '../browser';
|
|
11
|
+import GlobalOnErrorHandler from '../util/GlobalOnErrorHandler';
|
|
12
|
+import Listenable from '../util/Listenable';
|
|
13
|
+import RandomUtil from '../util/RandomUtil';
|
|
14
|
+
|
|
15
|
+import Caps from './Caps';
|
|
16
|
+import XmppConnection from './XmppConnection';
|
11
|
17
|
import MucConnectionPlugin from './strophe.emuc';
|
12
|
18
|
import JingleConnectionPlugin from './strophe.jingle';
|
13
|
|
-import initStropheUtil from './strophe.util';
|
|
19
|
+import initStropheLogger from './strophe.logger';
|
14
|
20
|
import PingConnectionPlugin from './strophe.ping';
|
15
|
21
|
import RayoConnectionPlugin from './strophe.rayo';
|
16
|
|
-import initStropheLogger from './strophe.logger';
|
17
|
|
-import Listenable from '../util/Listenable';
|
18
|
|
-import Caps from './Caps';
|
19
|
|
-import GlobalOnErrorHandler from '../util/GlobalOnErrorHandler';
|
20
|
|
-import XMPPEvents from '../../service/xmpp/XMPPEvents';
|
21
|
|
-import XmppConnection from './XmppConnection';
|
|
22
|
+import initStropheUtil from './strophe.util';
|
22
|
23
|
|
23
|
24
|
const logger = getLogger(__filename);
|
24
|
25
|
|
|
@@ -251,6 +252,16 @@ export default class XMPP extends Listenable {
|
251
|
252
|
|
252
|
253
|
if (identity.type === 'lobbyrooms') {
|
253
|
254
|
this.lobbySupported = true;
|
|
255
|
+ identity.name && this.caps.getFeaturesAndIdentities(identity.name, identity.type)
|
|
256
|
+ .then(({ features: f }) => {
|
|
257
|
+ f.forEach(fr => {
|
|
258
|
+ if (fr.endsWith('#displayname_required')) {
|
|
259
|
+ this.eventEmitter.emit(
|
|
260
|
+ JitsiConnectionEvents.DISPLAY_NAME_REQUIRED);
|
|
261
|
+ }
|
|
262
|
+ });
|
|
263
|
+ })
|
|
264
|
+ .catch(logger.warn('Error getting features from lobby.'));
|
254
|
265
|
}
|
255
|
266
|
});
|
256
|
267
|
|