setAttachment method
推荐使用此接口设置附件
Implementation
void setAttachment(NIMMessageAttachment attachment) {
attach = jsonEncode(attachment.toMap());
}
推荐使用此接口设置附件
void setAttachment(NIMMessageAttachment attachment) {
attach = jsonEncode(attachment.toMap());
}