fix: Obtain group dc from stats_dc
Co-authored-by: tehcneko <chsqwyx@gmail.com>
This commit is contained in:
parent
5a1203d2a8
commit
533950b515
@ -10076,8 +10076,11 @@ public class ProfileActivity extends BaseFragment implements NotificationCenter.
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user