Skip to content

Attachments api downloadAttachments flag doesn't seem to work #356

@galacticgibbon

Description

@galacticgibbon

In my web implementation, I don't want to download attachments to memory, since a user on my app can have thousands of attachments. So I fetch on demand.

I tried turning 'downloadAttachments' off, but that didn't seem to work. All attachments were downloaded on init.

I had to turn it off by returning an empty stream in watchAttachments instead

    downloadAttachments: !kIsWeb, // not working
    watchAttachments: () {
      // downloadAttachments doesn't seem to work on web
      if (kIsWeb) {
        return Stream.value([]);
      }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions