mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 12:05:22 +00:00
Clear invite reminder if recipient isn't a contact
Fixes #5637 Closes #5640 // FREEBIE
This commit is contained in:
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…
Reference in New Issue
Block a user