mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-04 06:31:13 +00:00
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:
parent
679c980683
commit
3c24d6b700
@ -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: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user