diff --git a/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java index 5d71b1c803..49d7c56988 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java @@ -10076,8 +10076,11 @@ private void updateProfileData(boolean reload) { getFileLoader().loadFile(imageLocation, chat, null, FileLoader.PRIORITY_LOW, 1); } avatarImage.getImageReceiver().setVisible(!PhotoViewer.isShowingImage(photoBig) && (getLastStoryViewer() == null || getLastStoryViewer().transitionViewHolder.view != avatarImage), storyView != null); - if (chat.photo != null && chat.photo.dc_id != 0) { + dc = chatInfo != null ? chatInfo.stats_dc != 0 ? chatInfo.stats_dc : 0 : 0; + if (dc == 0 && chat.photo != null && chat.photo.dc_id != 0) { dc = chat.photo.dc_id; + } + if (dc != 0) { idTextView.setText("ID: " + chatId + ", DC: " + dc); } else { idTextView.setText("ID: " + chatId);