Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5a26877 authored by Fahim Salam Chowdhury's avatar Fahim Salam Chowdhury 👽
Browse files

Merge branch '3787-Block_duplicate_recipient_entry_from_compose_page' into 'main'

3787-Block_duplicate_recipient_entry_from_compose_page

See merge request e/apps/mail!42
parents 6ce06df7 8ce9fc7d
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -404,6 +404,7 @@ public class RecipientSelectView extends TokenCompleteTextView<Recipient> implem

        switch (loader.getId()) {
            case LOADER_ID_FILTERING: {
                data.removeAll(getObjects());
                adapter.setRecipients(data);
                break;
            }
@@ -459,6 +460,9 @@ public class RecipientSelectView extends TokenCompleteTextView<Recipient> implem
        alternatesPopup.dismiss();

        List<Recipient> currentRecipients = getObjects();
        if (currentRecipients.contains(alternateAddress)) {
            return;
        }
        int indexOfRecipient = currentRecipients.indexOf(recipientToReplace);
        if (indexOfRecipient == -1) {
            Timber.e("Tried to refresh invalid view token!");