Convert RecipientIdentifier to record

This commit is contained in:
AsamK 2021-10-31 21:24:25 +01:00
parent 31dec5a666
commit b615a4b04d
3 changed files with 15 additions and 82 deletions

View file

@ -582,7 +582,7 @@ public class DbusManagerImpl implements Manager {
final var groupRecipients = recipients.stream()
.filter(r -> r instanceof RecipientIdentifier.Group)
.map(RecipientIdentifier.Group.class::cast)
.map(g -> g.groupId)
.map(RecipientIdentifier.Group::groupId)
.collect(Collectors.toList());
for (final var groupId : groupRecipients) {
timestamp = groupHandler.apply(groupId.serialize());