Skip to content

Commit

Permalink
fix: Obtain group dc from stats_dc
Browse files Browse the repository at this point in the history
Co-authored-by: tehcneko <[email protected]>
  • Loading branch information
omg-xtao and tehcneko committed Jul 14, 2024
1 parent 5a1203d commit 533950b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 533950b

Please sign in to comment.