From 6b9ffd019a4123953c97c857c5939f6d20c23994 Mon Sep 17 00:00:00 2001 From: ACh Sulfate Date: Tue, 8 Aug 2023 15:04:14 +0800 Subject: [PATCH] chore: RevokeMsgHook: show msgseq if enabled --- app/src/main/java/cc/ioctl/hook/msg/RevokeMsgHook.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/src/main/java/cc/ioctl/hook/msg/RevokeMsgHook.java b/app/src/main/java/cc/ioctl/hook/msg/RevokeMsgHook.java index 68c881fbe3..dee3e5c553 100644 --- a/app/src/main/java/cc/ioctl/hook/msg/RevokeMsgHook.java +++ b/app/src/main/java/cc/ioctl/hook/msg/RevokeMsgHook.java @@ -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: "对方撤回了一条消息" @@ -475,6 +478,9 @@ 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)); @@ -482,6 +488,9 @@ private void onRecallSysMsgForNT(int chatType, String peerUid, String recallOpUi 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 {