Skip to content

Commit

Permalink
fix: RevokeMsgHook: NT :handle msgObject.getMsgType() == kMsgTypeNull…
Browse files Browse the repository at this point in the history
… correctly
  • Loading branch information
cinit committed Jul 16, 2023
1 parent 4df14eb commit eee5ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/cc/ioctl/hook/msg/RevokeMsgHook.java
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ private void onRecallSysMsgForNT(int chatType, String peerUid, String recallOpUi
String operatorUin = RelationNTUinAndUidApi.getUinFromUid(recallOpUid);
// note: operatorUin may be empty, in the case when in a group chat, NT kernel are not so familiar with the one
// do we have the original message?
if (msgObject != null && !(msgObject.getMsgType() == 5 && msgObject.getSubMsgType() == 4)) {
if (msgObject != null && msgObject.getMsgType() != 1 && !(msgObject.getMsgType() == 5 && msgObject.getSubMsgType() == 4)) {
// good, we have the original message
// then, is the original message sent by the operator?
String msgAuthorUid = msgObject.getSenderUid();
Expand Down

0 comments on commit eee5ec4

Please sign in to comment.