Skip to content

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

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([]);
      }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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