Skip to content

Commit

Permalink
修复发送 emoji 表情失败
Browse files Browse the repository at this point in the history
  • Loading branch information
siqiii committed Oct 10, 2024
1 parent 0e3d054 commit 14271f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ui/main/conversation/MessageInputView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,9 @@ export default {
let imgs = [...input.getElementsByTagName('img')];
if (imgs) {
for (const img of imgs) {
// emoji
if (img.className.indexOf('emoji') >= 0) {
img.replaceWith(img.alt)
continue;
}
let src = img.src;
Expand Down

0 comments on commit 14271f0

Please sign in to comment.