Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/16746

Vanessa7161d4baeb43
diff --git a/app/src/emoji/index.ts b/app/src/emoji/index.ts
index 7e26cedf2c..15105624a6 100644
--- a/app/src/emoji/index.ts
+++ b/app/src/emoji/index.ts
@@ -439,7 +439,6 @@ export const openEmojiPanel = (
icon: unicode
}, () => {
dialog.destroy();
- addEmoji(unicode);
updateFileTreeEmoji(unicode, id, "iconFilesRoot");
});
} else if (type === "doc") {
@@ -448,7 +447,6 @@ export const openEmojiPanel = (
attrs: {"icon": unicode}
}, () => {
dialog.destroy();
- addEmoji(unicode);
updateFileTreeEmoji(unicode, id);
updateOutlineEmoji(unicode, id);
});
@@ -456,6 +454,7 @@ export const openEmojiPanel = (
if (callback) {
callback(unicode);
}
+ addEmoji(unicode);
event.preventDefault();
event.stopPropagation();
return;
@@ -595,7 +594,6 @@ export const openEmojiPanel = (
notebook: id,
icon: unicode
}, () => {
- addEmoji(unicode);
updateFileTreeEmoji(unicode, id, "iconFilesRoot");
});
} else if (type === "doc") {
@@ -603,7 +601,6 @@ export const openEmojiPanel = (
id,
attrs: {"icon": unicode}
}, () => {
- addEmoji(unicode);
updateFileTreeEmoji(unicode, id);
updateOutlineEmoji(unicode, id);
@@ -612,6 +609,7 @@ export const openEmojiPanel = (
if (callback) {
callback(unicode);
}
+ addEmoji(unicode);
break;
} else if (target.getAttribute("data-type")?.startsWith("tab-")) {
dialogElement.querySelectorAll('.emojis__tabheader [data-type|="tab"]').forEach((item: HTMLElement) => {