-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
Always add URL field on media events #680
Conversation
Are stickers not supposed to be encrypted by the spec 😱 |
as far as i understand the spec completely ignores this possibility. i think it makes sense from a userland implementation, you add it to the global im.ponies.emotes or whatever state event as an mxc and then you just link to it and its intended to be a public resource. the difference is that the bridge treats stickers as media to bridge and therefore tries to encrypt it which simply doesnt agree with that thought train. i suppose its just a hole in the spec |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Workarounds for bad clients need to be clearly marked. It also needs to be minimal, like using a fake mxc URI or a blank string to avoid it being misinterpreted as a real field. Definitely can't add it to non-sticker events either
As far as I understand the issue, the rust sdk uses the url field when it parses a sticker so it can't be fake or blank. |
It must also be using the |
I just tried using an empty string and stickers don't show up |
It’s got to be using the keys from the file object, it’s probably a bug in
the sdk
…On Mon, Jan 1, 2024 at 11:54 PM Marco Antonio Alvarez < ***@***.***> wrote:
It must also be using the file object, because otherwise it'd just get an
encrypted blob. That's why I assumed it was only validating the presence of
url and not actually using it
I just tried using an empty string and stickers don't show up
It must be using the file object, yes, but the missing url makes the
initial parsing of the sticker event just fail
—
Reply to this email directly, view it on GitHub
<#680 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWNJYMB5L2BRS5DOR2IDVGLYMPKNVAVCNFSM6AAAAABBGWXUNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZTHAYTANJWHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
More like a bug in the spec, I think. It says that for stickers the content.url field is required and the sdk is honoring that 🤷 |
Hmm, I can't reproduce making element x work by just adding the url field |
Are you running latest from the develop branch?
- *M*arco
…On Wed, 3 Jan 2024 at 13:10, Tulir Asokan ***@***.***> wrote:
Hmm, I can't reproduce making element x work by just adding the url field
—
Reply to this email directly, view it on GitHub
<#680 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFG5BGW2LBLWPWF42TPJUTYMVDEFAVCNFSM6AAAAABBGWXUNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZVGI3TKNZYGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Yes, it tries to render it, but just shows a blank box |
Closing in favor of ruma/ruma#1820 |
Fixes #662
Fixes element-hq/element-x-ios#1047