mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-22 06:25:14 +01:00
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:
parent
368822d20f
commit
22d7dfed52
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue