Skip to content

Commit

Permalink
Remove more tips for TIM 3.5.1 / 移除 TIM “你可以在这里设置群消息提醒方式” (#823)
Browse files Browse the repository at this point in the history
Remove more Tips for TIM 3.5.1 (TimRemoveToastTips.kt)
  • Loading branch information
MoonLeeeaf authored Feb 21, 2024
1 parent dbc6b18 commit df79875
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions app/src/main/java/cc/microblock/hook/TimRemoveToastTips.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ import xyz.nextalone.util.set
@FunctionHookEntry
@UiItemAgentEntry
object TimRemoveToastTips : CommonSwitchFunctionHook() {
override val name = "移除屏蔽消息群的“修改消息设置”提示(仅 TIM)"
override val description = "https://github.com/cinit/QAuxiliary/issues/667";
override val name = "移除群聊“修改/设置消息设置”提示"
override val description = "本功能仅在 TIM 3.5.1 测试通过,功能可能对其他版本或其他客户端无效\n\n功能基于 Issue #781 和 #667 移植实现";

override val uiItemLocation = FunctionEntryRouter.Locations.Auxiliary.MESSAGE_CATEGORY

Expand All @@ -49,6 +49,14 @@ object TimRemoveToastTips : CommonSwitchFunctionHook() {
) {
it.result = null;
}
// 漏了一个“你可以在这里xxxxx”,实在吐了,这玩意不定时的
HookUtils.hookBeforeIfEnabled(
this, Reflex.findMethod(
Initiator.loadClass("com.tencent.mobileqq.activity.aio.rebuild.TroopChatPie\$38"),
"run")
) {
it.result = null;
}
return true;
}

Expand Down

0 comments on commit df79875

Please sign in to comment.