Skip to content

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

@bbiwy1984

Description

@bbiwy1984

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).

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