Skip to content

[Matrix] Phase 1: Media Handling #780

@alacy-centrl

Description

@alacy-centrl

Overview

Implement media upload/download support for Matrix adapter using the MediaStore pattern.

Tasks

  • Implement Matrix media download (GET /_matrix/client/v1/media/download)
  • Implement Matrix media upload (POST /_matrix/media/v3/upload)
  • Handle mxc:// URI conversion
  • Support image, audio, and file attachments
  • Integrate with existing MediaStore
  • Add media size validation
  • Handle Matrix homeserver-specific limits

Acceptance Criteria

  • Can download media from Matrix rooms
  • Can upload and send media to Matrix rooms
  • Media cached in MediaStore
  • Handles various media types (images, audio, files)
  • Graceful error handling for failed uploads/downloads

Estimated Time

1 day

Dependencies

Technical Details

  • Matrix uses mxc:// URIs for media
  • Download requires authentication
  • Upload returns mxc:// URI for inclusion in messages
  • Media stored in homeserver, not as file IDs

See full plan: https://github.com/users/alacy-centrl/projects/2

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