Extracted into local variable
Co-authored-by: delvh <dev.lh@web.de>
This commit is contained in:
parent
71c7d6344b
commit
4a7ad7e1fd
@ -45,10 +45,11 @@ public class GroupMessageStatusChangeProcessor implements ObjectProcessor<GroupM
|
|||||||
gmsg.setLastStatusChangeDate(LocalDateTime.now());
|
gmsg.setLastStatusChangeDate(LocalDateTime.now());
|
||||||
|
|
||||||
// Notifying the other members about the status change
|
// Notifying the other members about the status change
|
||||||
|
final var userID = connectionManager.getUserIDBySocketID(socketID);
|
||||||
gmsg.getMemberMessageStatus()
|
gmsg.getMemberMessageStatus()
|
||||||
.keySet()
|
.keySet()
|
||||||
.stream()
|
.stream()
|
||||||
.filter(k -> connectionManager.getUserIDBySocketID(socketID) != k)
|
.filter(k -> userID != k)
|
||||||
.filter(connectionManager::isOnline)
|
.filter(connectionManager::isOnline)
|
||||||
.forEach(k -> writeProxy.write(connectionManager.getSocketID(k), statusChange));
|
.forEach(k -> writeProxy.write(connectionManager.getSocketID(k), statusChange));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user