Skip to content

Commit

Permalink
Add TODO messages for #228
Browse files Browse the repository at this point in the history
  • Loading branch information
Fishbowler authored and guusdk committed Jul 6, 2022
1 parent a796488 commit 7b5727c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/java/org/jivesoftware/openfire/plugin/service/LogAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public Response getLoggedServiceNames()

final List<MultiUserChatService> multiUserChatServices = XMPPServer.getInstance().getMultiUserChatManager().getMultiUserChatServices();
final List<String> serviceNames = multiUserChatServices.stream()
//TODO: https://github.com/igniterealtime/openfire-monitoring-plugin/issues/228
.filter(s -> s.getActiveChatRooms().stream().anyMatch(r -> r.isLogEnabled() && r.isPublicRoom()))
.map(MultiUserChatService::getServiceName)
.collect(Collectors.toList() );
Expand All @@ -88,6 +89,7 @@ public Response getLoggedServiceNames( @PathParam("serviceName") String serviceN
return Response.noContent().build();
}

//TODO: https://github.com/igniterealtime/openfire-monitoring-plugin/issues/228
final List<String> roomNames = multiUserChatService.getActiveChatRooms().stream()
.filter( r -> r.isLogEnabled() && r.isPublicRoom() )
.map( MUCRoom::getName )
Expand Down

0 comments on commit 7b5727c

Please sign in to comment.