Skip to content

Commit 5311a89

Browse files
committed
fix(visitors): Fixes promotion response handling.
1 parent 43bbd50 commit 5311a89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/xmpp/strophe.emuc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export default class MucConnectionPlugin extends ConnectionPluginListenable {
258258

259259
// Use *|xmlns to match xmlns attributes across any namespace (CSS Selectors Level 3)
260260
const visitors = findFirst(iq, ':scope>visitors[*|xmlns="jitsi:visitors"]');
261-
const response = findFirst(iq, ':scope>promotion-response');
261+
const response = findFirst(visitors, ':scope>promotion-response');
262262

263263
if (visitors && response) {
264264
if (String(getAttribute(response, 'allow')).toLowerCase() === 'true') {

0 commit comments

Comments
 (0)