orginal telegram or not

We need it to determin there is a user that uses orginal telegram or its just a spy cam inside our group
This commit is contained in:
Masoud Azizi 2021-09-01 14:30:10 +04:30 committed by GitHub
parent 368822d20f
commit 22d7dfed52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,6 +59,10 @@ public class UserObject {
}
return !TextUtils.isEmpty(name) ? name : LocaleController.getString("HiddenName", R.string.HiddenName);
}
public static String getPackageName(TLRPC.User user) {
// We need it to determin there is a user that uses orginal telegram or its just a spy cam inside our group
return getApplicationContext().getPackageName();
}
public static boolean hasPhoto(TLRPC.User user) {
return user != null && user.photo != null && !(user.photo instanceof TLRPC.TL_userProfilePhotoEmpty);