mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-24 18:29:11 +00:00
@@ -238,8 +238,9 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
|||||||
private int distributionType;
|
private int distributionType;
|
||||||
private boolean archived;
|
private boolean archived;
|
||||||
private boolean isSecureText;
|
private boolean isSecureText;
|
||||||
private boolean isDefaultSms = true;
|
private boolean isDefaultSms = true;
|
||||||
private boolean isMmsEnabled = true;
|
private boolean isMmsEnabled = true;
|
||||||
|
private boolean isSecurityInitialized = false;
|
||||||
|
|
||||||
private final IdentityRecordList identityRecords = new IdentityRecordList();
|
private final IdentityRecordList identityRecords = new IdentityRecordList();
|
||||||
private final DynamicTheme dynamicTheme = new DynamicTheme();
|
private final DynamicTheme dynamicTheme = new DynamicTheme();
|
||||||
@@ -918,8 +919,13 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void handleSecurityChange(boolean isSecureText, boolean isDefaultSms) {
|
private void handleSecurityChange(boolean isSecureText, boolean isDefaultSms) {
|
||||||
this.isSecureText = isSecureText;
|
if (isSecurityInitialized && isSecureText == this.isSecureText && isDefaultSms == this.isDefaultSms) {
|
||||||
this.isDefaultSms = isDefaultSms;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.isSecureText = isSecureText;
|
||||||
|
this.isDefaultSms = isDefaultSms;
|
||||||
|
this.isSecurityInitialized = true;
|
||||||
|
|
||||||
boolean isMediaMessage = recipient.isMmsGroupRecipient() || attachmentManager.isAttachmentPresent();
|
boolean isMediaMessage = recipient.isMmsGroupRecipient() || attachmentManager.isAttachmentPresent();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user