Skip to content

Commit

Permalink
fixed friends hide with birthday
Browse files Browse the repository at this point in the history
  • Loading branch information
gdlbo committed Jul 17, 2022
1 parent 0901af5 commit 6b5c5be
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/src/main/java/ru/vtosters/lite/hooks/JsonInjectors.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ public static JSONObject superapp(JSONObject json) throws JSONException{

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");
Expand Down Expand Up @@ -138,6 +139,15 @@ public static JSONObject friends(JSONObject json) throws JSONException{
skip = friendsblock();
}

if (buttons.contains("friends_birthdays_list")){
hasBirthday = true;
}

if (name.contains("separator") && hasBirthday){
skip = false;
hasBirthday = false;
}

if (!skip) {
newItems.put(type);
}
Expand Down

0 comments on commit 6b5c5be

Please sign in to comment.