mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-11 18:54:21 +00:00
All push groups are 'secure' ConversationActivities.
This commit is contained in:
parent
4e703d5a00
commit
e2989373cd
@ -552,8 +552,8 @@ public class ConversationActivity extends PassphraseRequiredSherlockFragmentActi
|
|||||||
R.attr.conversation_send_secure_button};
|
R.attr.conversation_send_secure_button};
|
||||||
TypedArray drawables = obtainStyledAttributes(attributes);
|
TypedArray drawables = obtainStyledAttributes(attributes);
|
||||||
|
|
||||||
if (isSingleConversation() &&
|
if ((getRecipients() != null && getRecipients().isGroupRecipient()) ||
|
||||||
Session.hasSession(this, masterSecret, getRecipients().getPrimaryRecipient()))
|
(isSingleConversation() && Session.hasSession(this, masterSecret, getRecipients().getPrimaryRecipient())))
|
||||||
{
|
{
|
||||||
sendButton.setImageDrawable(drawables.getDrawable(1));
|
sendButton.setImageDrawable(drawables.getDrawable(1));
|
||||||
this.isEncryptedConversation = true;
|
this.isEncryptedConversation = true;
|
||||||
@ -643,6 +643,7 @@ public class ConversationActivity extends PassphraseRequiredSherlockFragmentActi
|
|||||||
Intent intent = new Intent(ConversationActivity.this, SingleContactSelectionActivity.class);
|
Intent intent = new Intent(ConversationActivity.this, SingleContactSelectionActivity.class);
|
||||||
startActivityForResult(intent, PICK_CONTACT);
|
startActivityForResult(intent, PICK_CONTACT);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initializeReceivers() {
|
private void initializeReceivers() {
|
||||||
securityUpdateReceiver = new BroadcastReceiver() {
|
securityUpdateReceiver = new BroadcastReceiver() {
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user