fix: build warnings

This commit is contained in:
particle-box
2026-01-16 23:40:13 +05:30
parent 4961a36c63
commit d3b7ddda40
4 changed files with 8 additions and 30 deletions

View File

@@ -11,10 +11,11 @@ class RefreshFriendSuggestions : Feature("Refresh Friend Suggestions") {
listOf("m34803a", "mo81d").forEach { methodName ->
runCatching {
findClass(className).hook(methodName, HookStage.AFTER) { param ->
(param.getResult() as? MutableMap<String, String>)?.apply {
put("_t", System.currentTimeMillis().toString())
put("limit", "100")
}
val result = param.getResult()
val updated = (result as? Map<*, *>)?.toMutableMap() ?: return@hook
updated["_t"] = System.currentTimeMillis().toString()
updated["limit"] = "100"
param.setResult(updated)
}
}.onFailure {}
}