don't show invite reminder for non-contacts

Closes #4310
// FREEBIE
pull/1/head
Jake McGinty 10 years ago committed by Moxie Marlinspike
parent 40108d5276
commit 15b131d8c2

@ -816,7 +816,12 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
}
private void updateInviteReminder() {
if (TextSecurePreferences.isPushRegistered(this) && !isSecureText && recipients.isSingleRecipient()) {
if (TextSecurePreferences.isPushRegistered(this) &&
!isSecureText &&
recipients.isSingleRecipient() &&
recipients.getPrimaryRecipient() != null &&
recipients.getPrimaryRecipient().getContactUri() != null)
{
new ShowInviteReminderTask().execute(recipients);
} else {
reminderView.hide();

Loading…
Cancel
Save