Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

engine_fetch_asset() and engine_send_file() failed when in group chat #66

Open
bbiwy1984 opened this issue Aug 6, 2023 · 0 comments
Open

Comments

@bbiwy1984
Copy link

When in a group chat and a file is sent to the group, the following code snippet fails (400) to work:

        case GENERIC_MESSAGE__CONTENT_ASSET:
            struct Asset *asset;
            struct Asset__Original *ao;
            Asset__RemoteData *ar;
            asset = gm->asset;
            ao = asset->original;
            ar = asset->uploaded;

            engine_fetch_asset(zcall_engine, conv->id, ar->asset_id, "/tmp/");

Also, while in a group chat, calling engine_send_file using for example: engine_send_file(conv, "image/jpeg", "/tmp/x.jpg"); also fails (404).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant