Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fairblue
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hosting
chat
fairblue
Commits
cacb4a3f
Commit
cacb4a3f
authored
5 years ago
by
Vitor Mateus
Browse files
Options
Downloads
Patches
Plain Diff
Code improvements
parent
0ae55594
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bigbluebutton-html5/imports/startup/client/base.jsx
+32
-22
32 additions, 22 deletions
bigbluebutton-html5/imports/startup/client/base.jsx
with
32 additions
and
22 deletions
bigbluebutton-html5/imports/startup/client/base.jsx
+
32
−
22
View file @
cacb4a3f
...
...
@@ -244,8 +244,16 @@ const BaseContainer = withTracker(() => {
const
groupChatMessageHandler
=
Meteor
.
subscribe
(
'
group-chat-msg
'
,
credentials
,
chatIds
,
subscriptionErrorHandler
);
const
User
=
Users
.
findOne
({
intId
:
credentials
.
requesterUserId
});
let
responseDelay
;
let
inactivityCheck
;
if
(
User
)
{
const
{
responseDelay
:
userResponseDelay
,
inactivityCheck
:
userInactivityCheck
,
}
=
User
;
responseDelay
=
userResponseDelay
;
inactivityCheck
=
userInactivityCheck
;
const
mappedUser
=
mapUser
(
User
);
// override meteor subscription to verify if is moderator
userSubscriptionHandler
=
Meteor
.
subscribe
(
'
users
'
,
credentials
,
mappedUser
.
isModerator
,
subscriptionErrorHandler
);
...
...
@@ -292,28 +300,28 @@ const BaseContainer = withTracker(() => {
Meetings
.
find
({
meetingId
}).
observe
({
changed
:
(
newDocument
,
oldDocument
)
=>
{
if
(
newDocument
.
recordProp
&&
newDocument
.
recordProp
.
recording
&&
new
Document
.
recordProp
.
recording
!==
old
Document
.
recordProp
.
recording
)
{
notify
(
<
FormattedMessage
id
=
"app.notification.recordingStart"
description
=
"Notification for when the recording starts"
/>,
'
success
'
,
'
record
'
,
);
}
if
(
newDocument
.
recordProp
)
{
if
(
!
old
Document
.
recordProp
.
recording
&&
new
Document
.
recordProp
.
recording
)
{
notify
(
<
FormattedMessage
id
=
"app.notification.recordingStart"
description
=
"Notification for when the recording starts"
/>,
'
success
'
,
'
record
'
,
);
}
if
(
new
Document
.
recordProp
&&
!
newDocument
.
recordProp
.
recording
&&
newDocument
.
recordProp
.
recording
!==
oldDocument
.
recordProp
.
recording
)
{
notify
(
<
FormattedMessage
id
=
"app.notification.
recording
S
top"
description
=
"Notification for when the recording stops"
/>
,
'
err
or
'
,
'
record
'
,
);
if
(
old
Document
.
recordProp
.
recording
&&
!
newDocument
.
recordProp
.
recording
)
{
notify
(
<
FormattedMessage
id
=
"app.notification.recordingStop"
description
=
"Notification for when the
recording
s
top
s
"
/>,
'
error
'
,
'
rec
or
d
'
,
);
}
}
},
});
...
...
@@ -329,9 +337,11 @@ const BaseContainer = withTracker(() => {
breakoutRoomSubscriptionHandler
,
meetingModeratorSubscriptionHandler
,
animations
,
responseDelay
,
inactivityCheck
,
User
,
meteorIsConnected
:
Meteor
.
status
().
connected
,
meetingExist
:
!!
Meetings
.
findOne
({
meeting
Id
})
,
meetingExist
:
!!
meeting
,
meetingHasEnded
:
!!
meeting
&&
meeting
.
meetingEnded
,
meetingIsBreakout
:
AppService
.
meetingIsBreakout
(),
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment