我的代码如下:
FileMessage fileMessage = FileMessage.from(path: filePath, name:fileName);
await this.widget.conversation.send(message: fileMessage);
其中send()函数来自官方SDK:package:leancloud_official_plugin/leancloud_plugin.dart
问题:请问如何为聊天文件添加某些属性到metaData呢?
现在的数据是这样的:
{
"msg-id": "z2KGhNWrQ5WTspr+D1wPLQ",
"conv-id": "60500df4e38a5779f6d8090b",
"is-conv": true,
"conv-type": 1,
"from": "88d5b080-6a91-11eb-a704-09e322ccbaff",
"bin": false,
"timestamp": 1615861225822,
"is-room": false,
"from-ip": "161.81.177.26",
"to": "60500df4e38a5779f6d8090b",
"data": "{\"lctype\":-6,\"lcfile\":{\"metaData\":{\"size\":61},\"objId\":\"605015e8f27b0d0db2f6baea\",\"url\":\"http://lc-BNiIPgp0.cn-e1.lcfile.com/1kM5g4UEgdfCadKg6gDwch3zpcyk6Vzz/configmanager.json\"},\"lctext\":null,\"lcattrs\":null}"
}