All push groups are 'secure' ConversationActivities.

This commit is contained in:
Moxie Marlinspike 2014-02-15 18:40:08 -08:00
parent 4e703d5a00
commit e2989373cd

View File

@ -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