mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
Only store profile keys for group history if none is known yet
This commit is contained in:
parent
10b9c264fd
commit
17596795c2
1 changed files with 4 additions and 1 deletions
|
@ -500,7 +500,10 @@ public class GroupHelper {
|
||||||
fromRevision = page.getPagingData().getNextPageRevision();
|
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 {
|
private GroupInfo getGroupForUpdating(GroupId groupId) throws GroupNotFoundException, NotAGroupMemberException {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue