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
877b9335
Commit
877b9335
authored
6 years ago
by
João Francisco Siebel
Browse files
Options
Downloads
Patches
Plain Diff
rename variable and add comments for better understanding
parent
d8a2cb38
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/api/users/server/handlers/presenterAssigned.js
+5
-3
5 additions, 3 deletions
...l5/imports/api/users/server/handlers/presenterAssigned.js
with
5 additions
and
3 deletions
bigbluebutton-html5/imports/api/users/server/handlers/presenterAssigned.js
+
5
−
3
View file @
877b9335
...
...
@@ -25,12 +25,14 @@ export default function handlePresenterAssigned(credentials, meetingId) {
const
prevPresenter
=
Users
.
findOne
(
selector
);
// no previous presenters
// The below code is responsible for set Meeting presenter to be default pod presenter as well.
// It's been handled here because right now akka-apps don't handle all cases scenarios.
if
(
!
prevPresenter
)
{
const
currentDefaultPodPresenter
=
PresentationPods
.
findOne
(
defaultPodSelector
);
const
{
currentPresenterId
}
=
currentDefaultPodPresenter
;
const
fake
Credentials
=
{
const
podPresenter
Credentials
=
{
meetingId
,
requesterUserId
:
assignedBy
,
};
...
...
@@ -39,11 +41,11 @@ export default function handlePresenterAssigned(credentials, meetingId) {
const
oldPresenter
=
Users
.
findOne
({
userId
:
currentPresenterId
});
if
(
oldPresenter
.
connectionStatus
===
'
offline
'
)
{
return
assignPresenter
(
fake
Credentials
,
presenterId
);
return
assignPresenter
(
podPresenter
Credentials
,
presenterId
);
}
return
true
;
}
return
assignPresenter
(
fake
Credentials
,
presenterId
);
return
assignPresenter
(
podPresenter
Credentials
,
presenterId
);
}
return
changeRole
(
ROLE_PRESENTER
,
false
,
prevPresenter
.
userId
,
meetingId
,
assignedBy
);
...
...
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