Commit a1e100f2 authored by Yoann HOUPERT's avatar 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
......@@ -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 + ', ';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment