MSC2582: Remove mimetype from EncryptedFile object#2582
Conversation
|
Related PR: #2581 |
|
Arbitrarily blocking this on someone commenting on #2581 |
|
(per #matrix-spec: this PR is required to remove the attribute - unblocked). |
|
|
||
|
|
||
| ## Potential issues | ||
| Some clients might depend on this? |
There was a problem hiding this comment.
TODO: check client support
(I will update this list as we determine what changes are needed for clients.)
(in alphabetical order)
- fluffychat
- gomuks
- nheko
- nio SDK
- weechat-matrix (does not seem to use anything)
- mirage
-
RiotElement Android -
RiotElement iOS -
RiotElement Web- the
decryptFilefunction only gets passed thefileproperty from the contents. To fix this, we'd need to either pass both thefileandinfoproperties, or the entirecontents.
- the
- rust sdk (does not seem to do any mimetype processing on its own)
There was a problem hiding this comment.
Fluffychat doesn't seem to depend on this, either
There was a problem hiding this comment.
Element Android dropped this field in element-hq/element-android#3273. Element iOS in matrix-org/matrix-ios-sdk#1125. The open issue for Element Web is element-hq/element-web#17145.
There was a problem hiding this comment.
Element no longer uses this field, and uses the mimetype from the info field: matrix-org/matrix-react-sdk#6591 (It will still send the field for now, but that's less important for this MSC)
There was a problem hiding this comment.
@tulir do you know what gomuks does? Also, any of your bridges.
There was a problem hiding this comment.
My libraries don't support that field at all
There was a problem hiding this comment.
OK, so it seems like all clients don't use the undocumented field any more, so I think it this potential issue is no longer an issue.
|
|
||
| ## Proposal | ||
| The example in the spec currently lists `mimetype` in the examples for `EncryptedFile` but not in | ||
| the object definition. As that is duplicate information of the `info` block of file events, the |
There was a problem hiding this comment.
Just to note that the EncryptedFile appears twice in the examples: in the file property (top-level) and it info.thumbnail_file. mimetype is given in both places.
the mimetype in EncryptedFile is undocumented and redundant. see matrix-org/matrix-spec-proposals#2582
|
@mscbot fcp merge |
|
Team member @uhoreg has proposed to merge this. The next step is review by the rest of the tagged people: Once at least 75% of reviewers approve (and there are no outstanding concerns), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for information about what commands tagged team members can give me. |
turt2live
left a comment
There was a problem hiding this comment.
I'm a bit confused as to why this is an MSC, but I guess better safe than sorry.
|
🔔 This is now entering its final comment period, as per the review above. 🔔 |
Co-authored-by: Hubert Chathi <[email protected]>
Co-authored-by: Hubert Chathi <[email protected]>
|
Just committed the two suggestions 👍 |
|
The final comment period, with a disposition to merge, as per the review above, is now complete. |
* add proposal * Update proposals/2582-remove-mimetype-from-encrypted-file.md Co-authored-by: Hubert Chathi <[email protected]> * Update proposals/2582-remove-mimetype-from-encrypted-file.md Co-authored-by: Hubert Chathi <[email protected]> Co-authored-by: Hubert Chathi <[email protected]>
* add proposal * Update proposals/2582-remove-mimetype-from-encrypted-file.md Co-authored-by: Hubert Chathi <[email protected]> * Update proposals/2582-remove-mimetype-from-encrypted-file.md Co-authored-by: Hubert Chathi <[email protected]> Co-authored-by: Hubert Chathi <[email protected]>
|
Spec PR: #3412 |
|
Merged 🎉 |
Rendered
Signed-off-by: Sorunome [email protected]
Implementations:
mimetypeFields matrix-ios-sdk#1125Link to relevant spec: https://spec.matrix.org/unstable/client-server-api/#extensions-to-mroommessage-msgtypes