Clear invite reminder if recipient isn't a contact

Fixes #5637
Closes #5640
// FREEBIE
pull/1/head
FeuRenard 8 years ago committed by Moxie Marlinspike
parent 059ff3e2e1
commit 63f7faf5bb

@ -884,11 +884,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
}
private void updateRecipientPreferences() {
if (recipients.getPrimaryRecipient() != null &&
recipients.getPrimaryRecipient().getContactUri() != null)
{
new RecipientPreferencesTask().execute(recipients);
}
new RecipientPreferencesTask().execute(recipients);
}
protected void updateInviteReminder(boolean seenInvite) {
@ -896,7 +892,9 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
if (TextSecurePreferences.isPushRegistered(this) &&
!isSecureText &&
!seenInvite &&
recipients.isSingleRecipient())
recipients.isSingleRecipient() &&
recipients.getPrimaryRecipient() != null &&
recipients.getPrimaryRecipient().getContactUri() != null)
{
InviteReminder reminder = new InviteReminder(this, recipients);
reminder.setOkListener(new OnClickListener() {

Loading…
Cancel
Save