From 801c49740bccc7eaa2941d2e000f3d89ddbae1fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ram=C3=B3n=20Souza?= Date: Thu, 21 Mar 2024 17:36:18 -0300 Subject: [PATCH] inactivity warning - front-end --- bigbluebutton-html5/imports/startup/client/base.jsx | 4 ++-- .../imports/ui/components/app/component.jsx | 8 ++++---- .../ui/core/graphql/queries/currentUserSubscription.ts | 2 ++ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/bigbluebutton-html5/imports/startup/client/base.jsx b/bigbluebutton-html5/imports/startup/client/base.jsx index a3fe404de0..33cdc04ede 100755 --- a/bigbluebutton-html5/imports/startup/client/base.jsx +++ b/bigbluebutton-html5/imports/startup/client/base.jsx @@ -390,10 +390,10 @@ export default withTracker(() => { loggedOut: 1, meetingId: 1, userId: 1, - inactivityCheck: 1, - responseDelay: 1, currentConnectionId: 1, connectionIdUpdateTime: 1, + inactivityWarningDisplay: 1, + inactivityWarningTimeoutSecs: 1, }; const User = Users.findOne({ userId: credentials.requesterUserId }, { fields }); const meeting = Meetings.findOne({ meetingId }, { diff --git a/bigbluebutton-html5/imports/ui/components/app/component.jsx b/bigbluebutton-html5/imports/ui/components/app/component.jsx index 5bc10b25bb..9594534052 100644 --- a/bigbluebutton-html5/imports/ui/components/app/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/app/component.jsx @@ -476,12 +476,12 @@ class App extends Component { renderActivityCheck() { const { User } = this.props; - const { inactivityCheck, responseDelay } = User; + const { inactivityWarningDisplay, inactivityWarningTimeoutSecs } = User; - return (inactivityCheck ? ( + return (inactivityWarningDisplay ? ( ) : null); } diff --git a/bigbluebutton-html5/imports/ui/core/graphql/queries/currentUserSubscription.ts b/bigbluebutton-html5/imports/ui/core/graphql/queries/currentUserSubscription.ts index 141b849a81..483afc5b34 100644 --- a/bigbluebutton-html5/imports/ui/core/graphql/queries/currentUserSubscription.ts +++ b/bigbluebutton-html5/imports/ui/core/graphql/queries/currentUserSubscription.ts @@ -22,6 +22,8 @@ subscription userCurrentSubscription { guest guestStatus hasDrawPermissionOnCurrentPage + inactivityWarningDisplay + inactivityWarningTimeoutSecs isDialIn isModerator isOnline