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
7fc1e61c
Commit
7fc1e61c
authored
5 years ago
by
Chad Pilkey
Browse files
Options
Downloads
Patches
Plain Diff
user join cue improvements
parent
d81fe936
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bigbluebutton-html5/imports/startup/client/base.jsx
+38
-25
38 additions, 25 deletions
bigbluebutton-html5/imports/startup/client/base.jsx
bigbluebutton-html5/private/config/settings.yml
+2
-2
2 additions, 2 deletions
bigbluebutton-html5/private/config/settings.yml
with
40 additions
and
27 deletions
bigbluebutton-html5/imports/startup/client/base.jsx
+
38
−
25
View file @
7fc1e61c
...
...
@@ -215,8 +215,19 @@ Base.propTypes = propTypes;
Base
.
defaultProps
=
defaultProps
;
const
BaseContainer
=
withTracker
(()
=>
{
const
{
locale
,
animations
}
=
Settings
.
application
;
const
{
credentials
,
loggedIn
}
=
Auth
;
const
{
locale
,
animations
,
userJoinAudioAlerts
,
userJoinPushAlerts
,
}
=
Settings
.
application
;
const
{
credentials
,
loggedIn
,
userID
:
localUserId
,
}
=
Auth
;
const
{
meetingId
}
=
credentials
;
let
breakoutRoomSubscriptionHandler
;
let
meetingModeratorSubscriptionHandler
;
...
...
@@ -311,30 +322,32 @@ const BaseContainer = withTracker(() => {
},
});
Users
.
find
({},
{
fields
:
{
validated
:
1
,
name
:
1
}
}).
observe
({
changed
:
(
newDocument
)
=>
{
if
(
newDocument
.
validated
&&
newDocument
.
name
)
{
if
(
Settings
.
application
.
userJoinAudioAlerts
)
{
const
audio
=
new
Audio
(
`
${
Meteor
.
settings
.
public
.
app
.
cdn
+
Meteor
.
settings
.
public
.
app
.
basename
}
/resources/sounds/userJoin.mp3`
);
audio
.
play
();
}
if
(
Settings
.
application
.
userJoinPushAlerts
)
{
notify
(
<
FormattedMessage
id
=
"app.notification.userJoinPushAlert"
description
=
"Notification for a user joins the meeting"
values
=
{
{
0
:
newDocument
.
name
,
}
}
/>,
'
info
'
,
'
user
'
,
);
if
(
userJoinAudioAlerts
||
userJoinPushAlerts
)
{
Users
.
find
({},
{
fields
:
{
validated
:
1
,
name
:
1
,
userId
:
1
}
}).
observe
({
changed
:
(
newDocument
)
=>
{
if
(
newDocument
.
validated
&&
newDocument
.
name
&&
newDocument
.
userId
!==
localUserId
)
{
if
(
userJoinAudioAlerts
)
{
const
audio
=
new
Audio
(
`
${
Meteor
.
settings
.
public
.
app
.
cdn
+
Meteor
.
settings
.
public
.
app
.
basename
}
/resources/sounds/userJoin.mp3`
);
audio
.
play
();
}
if
(
userJoinPushAlerts
)
{
notify
(
<
FormattedMessage
id
=
"app.notification.userJoinPushAlert"
description
=
"Notification for a user joins the meeting"
values
=
{
{
0
:
newDocument
.
name
,
}
}
/>,
'
info
'
,
'
user
'
,
);
}
}
}
}
,
}
);
}
,
}
);
}
return
{
approved
,
...
...
This diff is collapsed.
Click to expand it.
bigbluebutton-html5/private/config/settings.yml
+
2
−
2
View file @
7fc1e61c
...
...
@@ -30,8 +30,8 @@ public:
animations
:
true
chatAudioAlerts
:
false
chatPushAlerts
:
false
userJoinAudioAlerts
:
tru
e
userJoinPushAlerts
:
tru
e
userJoinAudioAlerts
:
fals
e
userJoinPushAlerts
:
fals
e
fallbackLocale
:
en
overrideLocale
:
null
audio
:
...
...
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