Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
LINAGORA
L
LGS
Labs
hublot
Commits
a1e100f2
Commit
a1e100f2
authored
Oct 11, 2017
by
Yoann HOUPERT
Browse files
Merge branch 'issue-31' into 'master'
Issue 31 See merge request
!30
parents
561abb94
f84e062e
Pipeline
#3477
passed with stage
in 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
client/robot/robot.js
client/robot/robot.js
+15
-0
No files found.
client/robot/robot.js
View file @
a1e100f2
...
...
@@ -11,6 +11,7 @@ const config = arguments[1];
robotController
.
external
.
load
(
config
);
robot
=
{
previousReco
:
[],
recordedParticipantsWS
:
{},
participantsMediaRecorders
:
{},
...
...
@@ -25,8 +26,22 @@ robot = {
processReco
(
reco
)
{
reco
=
JSON
.
parse
(
reco
);
let
formattedReco
=
''
;
const
newPreviousReco
=
[];
let
isRecom
=
false
;
if
(
reco
.
keywords
&&
reco
.
keywords
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
reco
.
keywords
.
length
;
i
++
)
{
if
(
!
isRecom
&&
robot
.
previousReco
.
indexOf
(
reco
.
keywords
[
i
].
key
)
===
-
1
)
{
isRecom
=
true
;
}
newPreviousReco
.
push
(
reco
.
keywords
[
i
].
key
);
}
robot
.
previousReco
=
newPreviousReco
;
if
(
!
isRecom
)
{
return
;
}
formattedReco
+=
'
<h5>Mots-Clés</h5>
'
;
for
(
let
i
=
0
;
i
<
reco
.
keywords
.
length
;
i
++
)
{
formattedReco
+=
reco
.
keywords
[
i
].
key
+
'
,
'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment