mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user