@ -83,6 +83,7 @@ public class Recipient implements RecipientModifiedListener {
private @Nullable Uri callRingtone = null ;
public long mutedUntil = 0 ;
public int notifyType = 0 ;
private boolean autoDownloadAttachments = false ;
private boolean blocked = false ;
private boolean approved = false ;
private boolean approvedMe = false ;
@ -161,6 +162,7 @@ public class Recipient implements RecipientModifiedListener {
this . unidentifiedAccessMode = stale . unidentifiedAccessMode ;
this . forceSmsSelection = stale . forceSmsSelection ;
this . notifyType = stale . notifyType ;
this . autoDownloadAttachments = stale . autoDownloadAttachments ;
this . participants . clear ( ) ;
this . participants . addAll ( stale . participants ) ;
@ -191,6 +193,7 @@ public class Recipient implements RecipientModifiedListener {
this . unidentifiedAccessMode = details . get ( ) . unidentifiedAccessMode ;
this . forceSmsSelection = details . get ( ) . forceSmsSelection ;
this . notifyType = details . get ( ) . notifyType ;
this . autoDownloadAttachments = details . get ( ) . autoDownloadAttachments ;
this . participants . clear ( ) ;
this . participants . addAll ( details . get ( ) . participants ) ;
@ -227,6 +230,7 @@ public class Recipient implements RecipientModifiedListener {
Recipient . this . unidentifiedAccessMode = result . unidentifiedAccessMode ;
Recipient . this . forceSmsSelection = result . forceSmsSelection ;
Recipient . this . notifyType = result . notifyType ;
Recipient . this . autoDownloadAttachments = result . autoDownloadAttachments ;
Recipient . this . participants . clear ( ) ;
Recipient . this . participants . addAll ( result . participants ) ;
@ -264,6 +268,7 @@ public class Recipient implements RecipientModifiedListener {
this . callRingtone = details . callRingtone ;
this . mutedUntil = details . mutedUntil ;
this . notifyType = details . notifyType ;
this . autoDownloadAttachments = details . autoDownloadAttachments ;
this . blocked = details . blocked ;
this . approved = details . approved ;
this . approvedMe = details . approvedMe ;
@ -581,6 +586,18 @@ public class Recipient implements RecipientModifiedListener {
notifyListeners ( ) ;
}
public boolean getAutoDownloadAttachments ( ) {
return autoDownloadAttachments ;
}
public void setAutoDownloadAttachments ( boolean autoDownloadAttachments ) {
synchronized ( this ) {
this . autoDownloadAttachments = autoDownloadAttachments ;
}
notifyListeners ( ) ;
}
public synchronized boolean isBlocked ( ) {
return blocked ;
}
@ -829,6 +846,7 @@ public class Recipient implements RecipientModifiedListener {
private final boolean approvedMe ;
private final long muteUntil ;
private final int notifyType ;
private final boolean autoDownloadAttachments ;
private final VibrateState messageVibrateState ;
private final VibrateState callVibrateState ;
private final Uri messageRingtone ;
@ -851,6 +869,7 @@ public class Recipient implements RecipientModifiedListener {
public RecipientSettings ( boolean blocked , boolean approved , boolean approvedMe , long muteUntil ,
int notifyType ,
boolean autoDownloadAttachments ,
@NonNull VibrateState messageVibrateState ,
@NonNull VibrateState callVibrateState ,
@Nullable Uri messageRingtone ,
@ -876,6 +895,7 @@ public class Recipient implements RecipientModifiedListener {
this . approvedMe = approvedMe ;
this . muteUntil = muteUntil ;
this . notifyType = notifyType ;
this . autoDownloadAttachments = autoDownloadAttachments ;
this . messageVibrateState = messageVibrateState ;
this . callVibrateState = callVibrateState ;
this . messageRingtone = messageRingtone ;
@ -921,6 +941,10 @@ public class Recipient implements RecipientModifiedListener {
return notifyType ;
}
public boolean getAutoDownloadAttachments ( ) {
return autoDownloadAttachments ;
}
public @NonNull VibrateState getMessageVibrateState ( ) {
return messageVibrateState ;
}