Refactor markdownElement flash transfer check

Simplifies the condition for detecting flash transfer info in markdownElement by removing redundant undefined check.
This commit is contained in:
手瓜一十雪 committed 2026-01-24 12:31:03 +08:00
1 parent 679c980683
commit 2ebe07555c
1 file changed
+1 -1
+1 -1
View File
@@ -561,7 +561,7 @@ export class OneBotMsgApi {
markdownElement: async (element) => {
// 让QQ闪传消息独立出去
if (element.mdExtInfo !== undefined && element?.mdExtInfo?.flashTransferInfo?.filesetId) {
if (element?.mdExtInfo?.flashTransferInfo?.filesetId) {
return {
type: OB11MessageDataType.flashtransfer,
data: {