open profile from avatar in menu

This commit is contained in:
Phillip Thelen 2022-04-26 13:35:36 +02:00
parent 57f748de77
commit 0e0505de17

View file

@ -333,6 +333,10 @@ class NavigationDrawerFragment : DialogFragment() {
}
private fun updateUser(user: User) {
binding?.avatarView?.setOnClickListener {
MainNavigationController.navigate(R.id.openProfileActivity, bundleOf(Pair("userID", user.id)))
}
setMessagesCount(user.inbox)
setSettingsCount(if (user.flags?.verifiedUsername != true) 1 else 0)
setDisplayName(user.profile?.name)