removed globalUsersOnline + some code fixes

This commit is contained in:
gdlbo
2022-08-18 22:24:28 +03:00
parent 3c9a787a77
commit c4d77e40f4
13 changed files with 12 additions and 32 deletions
@@ -170,14 +170,9 @@ public class OnlineFormatterHook {
return getString("custom_online") + " " + appname;
}
public static JSONObject onlineHook(JSONObject json, boolean isGlobalHook) throws ParseException, IOException, JSONException {
if (!getBoolValue("onlinefix", false)) return json;
public static JSONObject onlineHook(JSONObject json) throws ParseException, IOException, JSONException {
if (getBoolValue("onlinefix", false)) setOnlineInfo(json);
if (isGlobalHook && !getBoolValue("globalUsersOnline", false)) {
return json;
}
setOnlineInfo(json);
return json;
}
@@ -189,6 +184,7 @@ public class OnlineFormatterHook {
} catch (Exception e) {
Log.e("onlineHookProfiles", e.getMessage());
}
return jsonArr;
}
@@ -152,10 +152,6 @@ public class Preferences {
return getBoolValue("calls", false);
}
public static boolean globalUsersOnline() {
return getBoolValue("globalUsersOnline", false);
}
public static boolean dev() {
return getBoolValue("dev", false);
}