Only store profile keys for group history if none is known yet
This commit is contained in:
parent
10b9c264fd
commit
17596795c2
@ -500,7 +500,10 @@ public class GroupHelper {
|
||||
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user