Mark profile for refresh when receiving a profile key message
This commit is contained in:
parent
ede0dfeef4
commit
238455ad6c
@ -301,7 +301,13 @@ public class RecipientStore implements RecipientResolver, ContactsStore, Profile
|
||||
public void storeProfileKey(RecipientId recipientId, final ProfileKey profileKey) {
|
||||
synchronized (recipients) {
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user