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

Adding custom info to image events #847

Open
kiliankoe opened this issue May 11, 2020 · 0 comments
Open

Adding custom info to image events #847

kiliankoe opened this issue May 11, 2020 · 0 comments

Comments

@kiliankoe
Copy link

Hi 👋

I'm looking to customize the info and/or content dictionary of image events before sending them. It would be great if the SDK were to offer the ability to provide a dictionary of data (presumably of type [String: Any]) to MXRoom.sendImage(data:size:mimeType:thumbnail:localEcho:completion:) aside from the other arguments the contents of which were added to the event metadata prior to sending. I don't believe there's currently another option of doing so without sending a custom event and manually uploading the media content.

The idea is to be able to support BlurHashes and MSC2530 (without it [yet] being part of the spec) in clients.

Cheers!

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