-
-
Notifications
You must be signed in to change notification settings - Fork 125
Document instance_id field of /thirdparty/protocols
#2051
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
Document instance_id field of /thirdparty/protocols
#2051
Conversation
It is used as the `third_party_instance_id` of `POST /_matrix/client/v3/publicRooms`. It has always been present since before the thirdparty protocol endpoints were added to the spec. Signed-off-by: Kévin Commaille <[email protected]>
Signed-off-by: Kévin Commaille <[email protected]>
richvdh
left a comment
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.
thanks for looking into this!
Signed-off-by: Kévin Commaille <[email protected]>
Signed-off-by: Kévin Commaille <[email protected]>
Signed-off-by: Kévin Commaille <[email protected]>
|
I'll take a closer look later, but I wanted to record: I spoke to the SCT about this, and there was a suggestion that an interesting alternative would be to remove this feature from the spec altogether (i.e., at least remove Element-Web does have support for Obviously, such a change would require an MSC, along with research into whether any other parts of the protocol are also obsolete, so I'm not particularly suggesting anyone do that work immediately. But if anyone were interested in working in this area at any point, that would be nice. |
richvdh
left a comment
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.
Thanks!
instance_id field of Protocol Instance in the CS APIinstance_id field of /thirdparty/protocols
…ix-org#2051)" This reverts commit c2ef38f.
GET /_matrix/client/v3/thirdparty/protocolsandGET /_matrix/client/v3/thirdparty/protocol/{protocol}currently return an undocumented fieldinstance_idfor each returnedProtocol Instance.The value of this field can be used as a parameter to
POST /_matrix/client/v3/publicRooms.instance_idhas always been present since before the thirdparty protocol endpoints were added to the spec:I marked it as required because that is how it is defined in the TypeScript definition of the type in matrix-js-sdk, and according to the corresponding code in Synapse it is defined ifNo longer marked as required: this would be a breaking change.network_idis defined, and according to the spec the latter is required.Fixes #833: The first paragraph of #833 seems to have been handled already, but this is about the second paragraph that is still relevant.
Pull Request Checklist
Preview: https://pr2051--matrix-spec-previews.netlify.app