isFileDownload method
Implementation
bool isFileDownload() {
if (messageAttachment is NIMFileAttachment) {
Alog.d(
tag: 'ChatKit',
moduleName: 'MessageExt',
content:
'is File downloaded -->> path:${(messageAttachment as NIMFileAttachment).path}');
return attachmentStatus == NIMMessageAttachmentStatus.transferred &&
(messageAttachment as NIMFileAttachment).path != null;
}
return false;
}