mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
Mark profile for refresh when receiving a profile key message
This commit is contained in:
parent
ede0dfeef4
commit
238455ad6c
1 changed files with 7 additions and 1 deletions
|
@ -301,7 +301,13 @@ public class RecipientStore implements RecipientResolver, ContactsStore, Profile
|
||||||
public void storeProfileKey(RecipientId recipientId, final ProfileKey profileKey) {
|
public void storeProfileKey(RecipientId recipientId, final ProfileKey profileKey) {
|
||||||
synchronized (recipients) {
|
synchronized (recipients) {
|
||||||
final var recipient = recipients.get(recipientId);
|
final var recipient = recipients.get(recipientId);
|
||||||
if (profileKey != null && profileKey.equals(recipient.getProfileKey())) {
|
if (profileKey != null && profileKey.equals(recipient.getProfileKey()) && (
|
||||||
|
recipient.getProfile() == null || (
|
||||||
|
recipient.getProfile().getUnidentifiedAccessMode() != Profile.UnidentifiedAccessMode.UNKNOWN
|
||||||
|
&& recipient.getProfile().getUnidentifiedAccessMode()
|
||||||
|
!= Profile.UnidentifiedAccessMode.DISABLED
|
||||||
|
)
|
||||||
|
)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue