Skip to content

Commit

Permalink
修复即使没有开启防撤回功能,仍会阻止撤回事件发送到渲染进程(撤回内容不会被保存,重新进入对话将显示撤回提示)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiyuesaves committed Nov 24, 2023
1 parent 83b035f commit 35ee319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ function onBrowserWindowCreated(window, plugin) {
if (onMsgInfoListUpdate !== -1) {
log("更新消息信息列表", args[1]);
const msgItem = args[1][0]?.payload?.msgList[0];
if (msgItem.elements[0]?.grayTipElement?.revokeElement) {
if (options.message.preventMessageRecall && msgItem.elements[0]?.grayTipElement?.revokeElement) {
if (!msgItem.elements[0].grayTipElement.revokeElement.isSelfOperate) {
log("捕获到撤回事件,已被阻止");
const findInCatch = catchMsgList.get(msgItem.msgId);
Expand Down

0 comments on commit 35ee319

Please sign in to comment.