From 12fc30716bd68e727ca9d0be20fae1940e8569d9 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sat, 31 Dec 2022 16:09:42 +0800 Subject: [PATCH] fix: user username profile --- .../src/main/java/org/telegram/ui/ProfileActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java index c835c6793..446b39454 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java @@ -7135,7 +7135,7 @@ public class ProfileActivity extends BaseFragment implements NotificationCenter. boolean hasPhone = user != null && (!TextUtils.isEmpty(user.phone) || !TextUtils.isEmpty(vcardPhone)); infoHeaderRow = rowCount++; - if (user != null && !TextUtils.isEmpty(user.username)) { + if (username != null) { usernameRow = rowCount++; } if (user != null && !user.restriction_reason.isEmpty()) {