#69 changed isCurrentUserParticipant
This commit is contained in:
parent
713e50043e
commit
9edcebb2f5
@ -134,11 +134,6 @@ public class ConferenceService {
|
||||
|
||||
|
||||
public boolean isCurrentUserParticipant(List<ConferenceUser> conferenceUsers) {
|
||||
for (ConferenceUser participant : conferenceUsers) {
|
||||
if (participant.getUser().getId() == userService.getCurrentUser().getId()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return conferenceUsers.stream().anyMatch(participant -> participant.getUser().equals(userService.getCurrentUser()));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user