matrix-org / matrix-org/matrix-ios-sdk

Send image with caption is missing.

Open
#1,852 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Objective-C
Stars
484
Forks
225
PR merge metrics
No merged PRs in 30d

Description

I want to send caption with image. There is no method to send caption.

var echo: MXEvent?

    room?.sendImage(data: imageData,
                    size: image.size,
                    mimeType: "image/png",
                    thumbnail: nil,
                    blurhash: nil,
                    localEcho: &echo,
                    completion: { response in
        print(response as Any)
    })

This is Matrix SDK function to sendImage.

Can anybody help me on this?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the sendImage entry point shown in the issue and inspect how image event parameters are assembled. Determine how a caption should be accepted and included, then verify that sending an image with a caption produces the expected event.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.