Skip to content

Commit

Permalink
fix: 表情没有 id 时转发失败
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Jul 11, 2024
1 parent dc96df4 commit 2f9cc7b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main/src/services/ForwardService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ export default class ForwardService {
break;
}
case 'sface': {
if (!elem.text) {
elem.text = '表情:' + elem.id;
}
message += `[<i>${helper.htmlEscape(elem.text)}</i>]`;
break;
}
Expand Down

0 comments on commit 2f9cc7b

Please sign in to comment.