Skip to content

Commit

Permalink
fix: send emotion for QQ 8.9.68
Browse files Browse the repository at this point in the history
  • Loading branch information
klxiaoniu committed Jul 6, 2023
1 parent 8f9b46e commit 7f1be03
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
import com.tencent.qqnt.kernel.nativeinterface.VASMsgNamePlate;
import io.github.qauxv.bridge.AppRuntimeHelper;
import io.github.qauxv.bridge.ntapi.MsgServiceHelper;
import io.github.qauxv.util.HostInfo;
import io.github.qauxv.util.QQVersion;
import java.util.ArrayList;
import java.util.HashMap;

Expand Down Expand Up @@ -64,7 +66,10 @@ public static MsgAttributeInfo getDefaultAttributeInfo(){

VASMsgElement element = new VASMsgElement(plate,bubble,pendant,font,iceBreak);


return new MsgAttributeInfo(0,0,element,null,null,null,null,null,null,null,null);
if (HostInfo.requireMinQQVersion(QQVersion.QQ_8_9_68)) {
return new MsgAttributeInfo(0, 0, element, null, null, null, null, null, null, null, null, null);
} else {
return new MsgAttributeInfo(0, 0, element, null, null, null, null, null, null, null, null);
}
}
}
1 change: 1 addition & 0 deletions app/src/main/java/io/github/qauxv/util/QQVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,5 @@ private QQVersion() {

// The first NT version
public static final long QQ_8_9_63 = 4194;
public static final long QQ_8_9_68 = 4264;
}

0 comments on commit 7f1be03

Please sign in to comment.