Skip to content

Commit

Permalink
fix: type
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Jul 25, 2024
1 parent d9c3824 commit d175395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/src/services/ForwardService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export default class ForwardService {
break;
}
case 'sface': {
if (typeof elem.text === 'string') {
if (typeof elem.text !== 'string') {
elem.text = '表情:' + elem.id;
}
message += `[<i>${helper.htmlEscape(elem.text)}</i>]`;
Expand Down

0 comments on commit d175395

Please sign in to comment.