diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/UserObject.java b/TMessagesProj/src/main/java/org/telegram/messenger/UserObject.java index 2fdc1d567..0a385299b 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/UserObject.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/UserObject.java @@ -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);