Skip to content
Snippets Groups Projects
Commit f5393409 authored by Tom Käsler's avatar Tom Käsler Committed by Daniel Gerhardt
Browse files

fix comparison

parent ba9b419c
No related merge requests found
......@@ -533,9 +533,9 @@ public class ArsnovaSocketioServerImpl implements ArsnovaSocketioServer, Arsnova
// Update the unanswered count for the content variant that was answered.
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()));
} else if ("preparation".equals(content.getGroups())) {
} else if (content.getGroups().contains("preparation")) {
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