|
@@ -190,11 +190,11 @@ export default class ChatRoom extends Listenable {
|
190
|
190
|
|
191
|
191
|
// there is no point of sending conference iq when in visitor mode
|
192
|
192
|
const preJoin
|
193
|
|
- = this.options.disableFocus || this.options.hosts.visitorFocus
|
|
193
|
+ = this.options.disableFocus || this.options.hosts?.visitorFocus
|
194
|
194
|
? Promise.resolve()
|
195
|
195
|
: this.moderator.allocateConferenceFocus();
|
196
|
196
|
|
197
|
|
- if (this.options.hosts.visitorFocus) {
|
|
197
|
+ if (this.options.hosts?.visitorFocus) {
|
198
|
198
|
this.moderator.setFocusUserJid(this.options.hosts.visitorFocus);
|
199
|
199
|
}
|
200
|
200
|
|