fixed friends hide with birthday

This commit is contained in:
gdlbo
2022-07-18 01:53:56 +03:00
parent 0901af5106
commit 6b5c5bedea
@@ -100,7 +100,8 @@ public class JsonInjectors{
public static JSONObject friends(JSONObject json) throws JSONException{
JSONObject catalog = json;
Boolean sectionexecute = true;
boolean sectionexecute = true;
boolean hasBirthday = false;
if (json.optJSONObject("catalog") != null) {
catalog = json.optJSONObject("catalog");
@@ -138,6 +139,15 @@ public class JsonInjectors{
skip = friendsblock();
}
if (buttons.contains("friends_birthdays_list")){
hasBirthday = true;
}
if (name.contains("separator") && hasBirthday){
skip = false;
hasBirthday = false;
}
if (!skip) {
newItems.put(type);
}