Skip to content

Commit

Permalink
fix: reservationError params fixed. sessionIdError and roomType added…
Browse files Browse the repository at this point in the history
…. BM-4466
  • Loading branch information
TCGBOGA committed Nov 11, 2024
1 parent 9888691 commit bb6d2f2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/xmpp/moderator.js
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,9 @@ export default class Moderator extends Listenable {
if (reservationErr.length) {
// Trigger error event
const errorCode = reservationErr.attr('error-code');
const sessionIdError = reservationErr.attr('session-id');
const errorTextNode = $(error).find('>error>text');
const roomType = reservationErr.attr('room-type');
let errorMsg;

if (errorTextNode) {
Expand All @@ -489,7 +491,9 @@ export default class Moderator extends Listenable {
this.eventEmitter.emit(
XMPPEvents.RESERVATION_ERROR,
errorCode,
errorMsg);
errorMsg,
sessionIdError,
roomType);

return;
}
Expand Down

0 comments on commit bb6d2f2

Please sign in to comment.