xh321 / LiteLoaderQQNT-Anti-Recall

LiteLoaderQQNT 插件 - QQNT 简易防撤回
MIT License
515 stars 21 forks source link

撤回未生效 #50

Open don-fon opened 7 months ago

don-fon commented 7 months ago

普通私聊,纯文本消息,发送并收到两秒后撤回。 日志中似乎是生效了,但实际上仍只显示“对方撤回了一条消息”。

日志如下:

PS D:\Tencent\QQ NT> ./QQ
PS D:\Tencent\QQ NT> not mini app.
[preload] process type:
[app]module file name: D:\Tencent\QQ NT\QQ.exe
[preload] hotupdate base version: 9.9.8-22165
[preload] hotupdate current version: 9.9.8-22165
[preload] install app version: 9.9.8-22165

[preload] succeeded. D:\Tencent\QQ NT\resources\app\versions\9.9.8-22165\major.node
[preload] succeeded. D:\Tencent\QQ NT\resources\app\app_launcher\launcher.node
[preload] succeeded. D:\Tencent\QQ NT\resources\app\versions\9.9.8-22165\wrapper.node
[LiteLoader] Start finding all plugins.
[LiteLoader] Found plugin: 闃叉挙鍥?[LiteLoader] Found 1 plugins, start loading plugins.
[preload] register done. launcher.node
[preload] register done. major.node
Error occurred in handler for 'get-remote-win': Error: No handler registered for 'get-remote-win'
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:86829)
    at WebContents.emit (node:events:517:28)
[preload] register done. wrapper.node
Anti-Recall: NTQQ Anti-Recall loaded for window: app://./renderer/index.html?webcontentsid=2&processGroupNS=createBlankWindow1#/main/message
[app]module file name: D:\Tencent\QQ NT\QQ.exe
cc621fe1e05be5a530ed8eea572ce7115a8227bb3d049b3be59707768387890a
0679e503562cd4f0d1319ae0e876bea364f2d59d53050bbc87e3c4453c668a06
error code v2:-8
00:06:54.338 > [hot update] hotUpdateApi checkHasMultipleQQ false
00:06:54.339 > [hot update] hotUpdateApi start clearOldVersions
00:06:54.340 > [hot update] hotUpdateApi curVersionZipPath is: D:\Tencent\QQ NT\resources\app\versions\9.9.8-22165.zip false
00:06:54.383 > [hot update] hotUpdateApi checkHasMultipleQQ false
00:06:54.384 > [hot update] hotUpdateApi checkIsOnErrorVersion 9.9.8-22165
00:06:54.384 > [hot update] hotUpdateApi checkIsOnErrorVersion res is false
Anti-Recall: Detected recall, intercepted
Anti-Recall: Detected recall, intercepted

一开始还有更多报错,mkdir、Db is null之类的,用管理员权限打开、并设置saveDb=true后报错少了,但还是没效果。 “Found plugin: 闃叉挙鍥”在终端里就是乱码,明明我文件夹名称“qq-anti-recall”没有中文。

don-fon commented 7 months ago

LiteLoaderQQNT版本1.03,仅安装了这一个插件,所有设置都没有改过

zss823158062 commented 7 months ago

你是更新了最新的qq了吧;新版有改动,等大佬更新插件吧

don-fon commented 7 months ago

自己尝试改了一下代码,貌似能用了

改动1:

args1.cmdName.indexOf("onRecvMsg") != -1

变为

args1.cmdName.indexOf("onRecvActiveMsg") != -1

改动2:

args1.cmdName.indexOf("onMsgInfoListUpdate") != -1

变为

args1.cmdName.indexOf("onActiveMsgInfoUpdate") != -1

接收消息时只得到了onRecvActiveMsg,而没有onRecvMsg 撤回消息时依次得到了onActiveMsgInfoUpdateonMsgInfoListUpdate,修改后者似乎没有效果

zss823158062 commented 7 months ago

api修改了;对应的样式id也修改了,无伤大雅

xh321 commented 7 months ago

先合并了pr,等有空我再完善一下