提交 ea29d1c3 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

return number as file extention name instead of throw a exception

上级 a98e21d5
......@@ -842,7 +842,8 @@ export class MediaMessage extends Message {
}
break
}
throw new Error('not support type: ' + this.type())
log.error('MediaMessage', `ext() got unknown type: ${this.type()}`)
return String(this.type())
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册