attachmentMxcUrl property

Uri? get attachmentMxcUrl

Gets the underlying mxc url of an attachment of a file event, or null if not present

Implementation

Uri? get attachmentMxcUrl {
  final url = isAttachmentEncrypted
      ? (content.tryGetMap<String, Object?>('file')?['url'])
      : content['url'];
  return url is String ? Uri.tryParse(url) : null;
}