Skip to content

Commit

Permalink
fix: ChatItemShowQQUin on TIM_NT
Browse files Browse the repository at this point in the history
Closes #1254
  • Loading branch information
HdShare committed Nov 25, 2024
1 parent 92d0bc3 commit fed9b13
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/src/main/java/me/ketal/hook/ChatItemShowQQUin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ import com.github.kyuubiran.ezxhelper.utils.invokeMethod
import com.github.kyuubiran.ezxhelper.utils.newInstance
import com.lxj.xpopup.util.XPopupUtils
import com.tencent.qqnt.kernel.nativeinterface.MsgRecord
import io.github.qauxv.util.xpcompat.XC_MethodHook
import io.github.qauxv.R
import io.github.qauxv.base.IUiItemAgent
import io.github.qauxv.base.annotation.UiItemAgentEntry
Expand All @@ -71,8 +70,11 @@ import io.github.qauxv.hook.CommonConfigFunctionHook
import io.github.qauxv.ui.CommonContextWrapper
import io.github.qauxv.ui.CustomDialog
import io.github.qauxv.util.QQVersion
import io.github.qauxv.util.TIMVersion
import io.github.qauxv.util.Toasts
import io.github.qauxv.util.requireMinQQVersion
import io.github.qauxv.util.requireMinTimVersion
import io.github.qauxv.util.xpcompat.XC_MethodHook
import kotlinx.coroutines.flow.MutableStateFlow
import me.ketal.dispacher.BaseBubbleBuilderHook
import me.ketal.dispacher.OnBubbleBuilder
Expand Down Expand Up @@ -369,7 +371,7 @@ object ChatItemShowQQUin : CommonConfigFunctionHook(), OnBubbleBuilder {
val isFlashPicTagNeedShow = FlashPicHook.INSTANCE.isInitializationSuccessful && isFlashPicNt(chatMessage)
if (!isEnabled && !isFlashPicTagNeedShow) return

if (requireMinQQVersion(QQVersion.QQ_8_9_63_BETA_11345)) {
if (requireMinQQVersion(QQVersion.QQ_8_9_63_BETA_11345) || requireMinTimVersion(TIMVersion.TIM_4_0_95)) {
if (!rootView.children.map { it.id }.contains(ID_ADD_LAYOUT)) {
val layout = LinearLayout(rootView.context).apply {
layoutParams = ConstraintLayout.LayoutParams(
Expand Down

0 comments on commit fed9b13

Please sign in to comment.