Skip to content
Snippets Groups Projects
Commit 8f0ec8f5 authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Merge branch 'fix-content-group-comparison' into 'master'

fix comparison

See merge request !97
parents ba9b419c f5393409
1 merge request!97fix comparison
Pipeline #20405 passed with warnings with stages
in 1 minute and 51 seconds
...@@ -533,9 +533,9 @@ public class ArsnovaSocketioServerImpl implements ArsnovaSocketioServer, Arsnova ...@@ -533,9 +533,9 @@ public class ArsnovaSocketioServerImpl implements ArsnovaSocketioServer, Arsnova
// Update the unanswered count for the content variant that was answered. // Update the unanswered count for the content variant that was answered.
final de.thm.arsnova.model.Content content = event.getContent(); final de.thm.arsnova.model.Content content = event.getContent();
if ("lecture".equals(content.getGroups())) { if (content.getGroups().contains("lecture")) {
sendToUser(event.getUser(), "unansweredLecturerQuestions", contentService.getUnAnsweredLectureContentIds(roomId, event.getUser())); sendToUser(event.getUser(), "unansweredLecturerQuestions", contentService.getUnAnsweredLectureContentIds(roomId, event.getUser()));
} else if ("preparation".equals(content.getGroups())) { } else if (content.getGroups().contains("preparation")) {
sendToUser(event.getUser(), "unansweredPreparationQuestions", contentService.getUnAnsweredPreparationContentIds(roomId, event.getUser())); sendToUser(event.getUser(), "unansweredPreparationQuestions", contentService.getUnAnsweredPreparationContentIds(roomId, event.getUser()));
} }
} }
......
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