From 2cda889d515a9c7301d21fac71aab1dba3f0734c Mon Sep 17 00:00:00 2001 From: Joao Siebel Date: Mon, 5 Jul 2021 16:04:26 -0300 Subject: [PATCH] Previne loggedOut property to be undefined. close #12656 --- .../imports/api/users/server/methods/userLeaving.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bigbluebutton-html5/imports/api/users/server/methods/userLeaving.js b/bigbluebutton-html5/imports/api/users/server/methods/userLeaving.js index 92133df8fb..c10163a2df 100755 --- a/bigbluebutton-html5/imports/api/users/server/methods/userLeaving.js +++ b/bigbluebutton-html5/imports/api/users/server/methods/userLeaving.js @@ -40,7 +40,7 @@ export default function userLeaving(meetingId, userId, connectionId) { const payload = { userId, sessionId: meetingId, - loggedOut: user.loggedOut, + loggedOut: user.loggedOut || false, }; ClientConnections.removeClientConnection(`${meetingId}--${userId}`, connectionId);