Merge pull request #19879 from ramonlsouza/pr-19851

fix: inactivity warning - front-end
This commit is contained in:
Gustavo Trott 2024-03-22 10:38:04 -03:00 committed by GitHub
commit 44af6f1908
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 6 deletions

View File

@ -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 }, {

View File

@ -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 ? (
<ActivityCheckContainer
inactivityCheck={inactivityCheck}
responseDelay={responseDelay}
inactivityCheck={inactivityWarningDisplay}
responseDelay={inactivityWarningTimeoutSecs}
/>
) : null);
}

View File

@ -22,6 +22,8 @@ subscription userCurrentSubscription {
guest
guestStatus
hasDrawPermissionOnCurrentPage
inactivityWarningDisplay
inactivityWarningTimeoutSecs
isDialIn
isModerator
isOnline