mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-20 00:58:25 +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() {
|
private void updateRecipientPreferences() {
|
||||||
if (recipients.getPrimaryRecipient() != null &&
|
new RecipientPreferencesTask().execute(recipients);
|
||||||
recipients.getPrimaryRecipient().getContactUri() != null)
|
|
||||||
{
|
|
||||||
new RecipientPreferencesTask().execute(recipients);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void updateInviteReminder(boolean seenInvite) {
|
protected void updateInviteReminder(boolean seenInvite) {
|
||||||
@ -896,7 +892,9 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
|||||||
if (TextSecurePreferences.isPushRegistered(this) &&
|
if (TextSecurePreferences.isPushRegistered(this) &&
|
||||||
!isSecureText &&
|
!isSecureText &&
|
||||||
!seenInvite &&
|
!seenInvite &&
|
||||||
recipients.isSingleRecipient())
|
recipients.isSingleRecipient() &&
|
||||||
|
recipients.getPrimaryRecipient() != null &&
|
||||||
|
recipients.getPrimaryRecipient().getContactUri() != null)
|
||||||
{
|
{
|
||||||
InviteReminder reminder = new InviteReminder(this, recipients);
|
InviteReminder reminder = new InviteReminder(this, recipients);
|
||||||
reminder.setOkListener(new OnClickListener() {
|
reminder.setOkListener(new OnClickListener() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user