Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Commit

Permalink
fix dm file message type
Browse files Browse the repository at this point in the history
  • Loading branch information
takayama-lily committed Oct 8, 2021
1 parent e4b7e03 commit 4f39e50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/message/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,14 +524,14 @@ async function _parseC2CFileElem(elem) {
size = elem[6],
duration = elem[51] ? timestamp() + elem[51] : 0;
const url = await getC2CFileUrl.call(this, fileid);
const message = {
const message = [{
type: "file",
data: {
name, url, size, md5, duration,
busid: 0,
fileid: String(fileid)
}
};
}];
const raw_message = this.config.brief ? "[离线文件]" : genCQMsg(message);
return {
message, raw_message
Expand Down

0 comments on commit 4f39e50

Please sign in to comment.