Skip to content

Commit 3c24d6b

Browse files
committed
Refactor markdownElement flash transfer check
Simplifies the condition for detecting flash transfer info in markdownElement by removing redundant undefined check.
1 parent 679c980 commit 3c24d6b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/napcat-onebot/api

packages/napcat-onebot/api/msg.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ export class OneBotMsgApi {
561561

562562
markdownElement: async (element) => {
563563
// 让QQ闪传消息独立出去
564-
if (element.mdExtInfo !== undefined && element?.mdExtInfo?.flashTransferInfo?.filesetId) {
564+
if (element?.mdExtInfo?.flashTransferInfo?.filesetId) {
565565
return {
566566
type: OB11MessageDataType.flashtransfer,
567567
data: {

0 commit comments

Comments
 (0)