profile switcher: hide email for chatmail profiles

as on other places,
hide chatmail email address from primary UI as well in the account switcher.

non-chatmail addresses will stay for now;
we are considering to add a "tag" or sth. like that for the user
to differenciate between accounts if they're using same name+avatar.

this also makes the dialog more on-point and easier to read.
This commit is contained in:
B. Petersen
2024-08-05 17:09:10 +02:00
committed by bjoern
parent d710ca54e6
commit 96fb9c741a
@@ -104,10 +104,12 @@ public class AccountSelectionListAdapter extends RecyclerView.Adapter
name = context.getString(R.string.add_account);
} else {
dcContact = dcContext.getContact(DcContact.DC_CONTACT_ID_SELF);
addr = dcContact.getAddr();
name = dcContext.getConfig("displayname");
if (TextUtils.isEmpty(name)) {
name = addr;
name = dcContact.getAddr();
}
if (!dcContext.isChatmail()) {
addr = dcContact.getAddr();
}
unreadCount = dcContext.getFreshMsgs().length;
}