Skip to content

Commit

Permalink
chore: RevokeMsgHook: show msgseq if enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
cinit committed Aug 8, 2023
1 parent cc37da8 commit 6b9ffd0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/src/main/java/cc/ioctl/hook/msg/RevokeMsgHook.java
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,9 @@ private void onRecallSysMsgForNT(int chatType, String peerUid, String recallOpUi
if (msgObject != null && !(msgObject.getMsgType() == 5 && msgObject.getSubMsgType() == 4)) {
builder.appendText(revokerPron + "尝试撤回");
builder.append(new NtGrayTipHelper.NtGrayTipJsonBuilder.MsgRefItem("一条消息", msgSeq));
if (isShowShmsgseqEnabled()) {
builder.appendText(" [seq=" + msgSeq + "]");
}
summary = revokerPron + "尝试撤回一条消息";
} else if (msgObject != null && (msgObject.getMsgType() == 5 && msgObject.getSubMsgType() == 4)) {
// C2C only: msg not actually received, system message: "对方撤回了一条消息"
Expand All @@ -475,13 +478,19 @@ private void onRecallSysMsgForNT(int chatType, String peerUid, String recallOpUi
builder.append(new NtGrayTipHelper.NtGrayTipJsonBuilder.UserItem(String.valueOf(operatorUin), recallOpUid, operatorName));
builder.appendText("尝试撤回");
builder.append(new NtGrayTipHelper.NtGrayTipJsonBuilder.MsgRefItem("一条消息", msgSeq));
if (isShowShmsgseqEnabled()) {
builder.appendText(" [seq=" + msgSeq + "]");
}
summary = operatorName + "尝试撤回一条消息";
} else {
builder.append(new NtGrayTipHelper.NtGrayTipJsonBuilder.UserItem(String.valueOf(operatorUin), recallOpUid, operatorName));
builder.appendText("尝试撤回");
builder.append(new NtGrayTipHelper.NtGrayTipJsonBuilder.UserItem(String.valueOf(msgAuthorUin), msgAuthorUid, msgAuthorName));
builder.appendText("的");
builder.append(new NtGrayTipHelper.NtGrayTipJsonBuilder.MsgRefItem("一条消息", msgSeq));
if (isShowShmsgseqEnabled()) {
builder.appendText(" [seq=" + msgSeq + "]");
}
summary = operatorName + "尝试撤回" + msgAuthorName + "的一条消息";
}
} else {
Expand Down

0 comments on commit 6b9ffd0

Please sign in to comment.