Skip to content

Commit

Permalink
Only store profile keys for group history if none is known yet
Browse files Browse the repository at this point in the history
  • Loading branch information
AsamK committed Jun 6, 2024
1 parent 10b9c26 commit 1759679
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,10 @@ private void storeProfileKeysFromHistory(
fromRevision = page.getPagingData().getNextPageRevision();
}

newProfileKeys.forEach(account.getProfileStore()::storeProfileKey);
newProfileKeys.entrySet()
.stream()
.filter(entry -> account.getProfileStore().getProfileKey(entry.getKey()) == null)
.forEach(entry -> account.getProfileStore().storeProfileKey(entry.getKey(), entry.getValue()));
}

private GroupInfo getGroupForUpdating(GroupId groupId) throws GroupNotFoundException, NotAGroupMemberException {
Expand Down

0 comments on commit 1759679

Please sign in to comment.