Skip to content

Commit

Permalink
fix: HideTroopToDo isAvailable 9.0.68 before
Browse files Browse the repository at this point in the history
  • Loading branch information
HdShare committed Oct 25, 2024
1 parent b47ae7b commit dc0be31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/me/hd/hook/HideTroopToDo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import io.github.qauxv.dsl.FunctionEntryRouter
import io.github.qauxv.hook.CommonSwitchFunctionHook
import io.github.qauxv.util.Initiator
import io.github.qauxv.util.QQVersion
import io.github.qauxv.util.hostInfo
import io.github.qauxv.util.requireMinQQVersion

@FunctionHookEntry
Expand All @@ -40,7 +41,7 @@ object HideTroopToDo : CommonSwitchFunctionHook() {
override val name = "隐藏群待办"
override val description = "对群聊上方的群待办进行简单隐藏"
override val uiItemLocation = FunctionEntryRouter.Locations.Simplify.CHAT_GROUP_TITLE
override val isAvailable = requireMinQQVersion(QQVersion.QQ_8_9_88)
override val isAvailable = hostInfo.versionCode in QQVersion.QQ_8_9_88..QQVersion.QQ_9_0_68

override fun initOnce(): Boolean {
val tipsBarNewClass: Class<*>
Expand Down

0 comments on commit dc0be31

Please sign in to comment.