This commit is contained in:
sim1222 2022-12-22 17:07:02 +09:00
parent b604ef1623
commit a29ee6d294
No known key found for this signature in database
GPG Key ID: 04EF48D01BEB0298

View File

@ -103,16 +103,17 @@ export async function openReactionImportMenu(ev: MouseEvent, reaction: string, n
});
});
console.log(name);
if (duplication) {
console.log(duplication);
if (await duplication) {
os.api('notes/reactions/create', {
noteId: noteId,
reaction: name,
reaction: `:${name}:`,
});
} else {
await importEmoji(true).then(() => {
os.api('notes/reactions/create', {
noteId: noteId,
reaction: name,
reaction: `:${name}:`,
});
});
}