mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Only send profile key update message from the primary device
This commit is contained in:
parent
abebffb2cd
commit
280bdbefdc
1 changed files with 4 additions and 1 deletions
|
@ -255,7 +255,10 @@ public final class IncomingMessageHandler {
|
|||
} else {
|
||||
// Message wasn't sent as unidentified sender message
|
||||
final var contact = context.getAccount().getContactStore().getContact(sender);
|
||||
if (contact != null && !contact.isBlocked() && contact.isProfileSharingEnabled()) {
|
||||
if (account.isPrimaryDevice()
|
||||
&& contact != null
|
||||
&& !contact.isBlocked()
|
||||
&& contact.isProfileSharingEnabled()) {
|
||||
actions.add(UpdateAccountAttributesAction.create());
|
||||
actions.add(new SendProfileKeyAction(sender));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue