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

client-api: use authentication for profile api for synapse #408

Merged
merged 1 commit into from
Feb 5, 2021

Conversation

jsparber
Copy link
Contributor

@jsparber jsparber commented Feb 4, 2021

Needs to be build with feature unstable-synapse-quirks

Fixes: #380

@jplatte
Copy link
Member

jplatte commented Feb 4, 2021

Since #407 will simplify this a lot, I'd like to wait for that to be merged to then make this change a lot simpler.

@jsparber
Copy link
Contributor Author

jsparber commented Feb 4, 2021

Since #407 will simplify this a lot, I'd like to wait for that to be merged to then make this change a lot simpler.

I agree, but since it's a really easy change I submitted an MR anyway.

@jplatte
Copy link
Member

jplatte commented Feb 5, 2021

That PR has been merged, can you update this one? 🙂

Needs to be build with feature `unstable-synapse-quirks`

Fixes: ruma#380
@jsparber
Copy link
Contributor Author

jsparber commented Feb 5, 2021

i'm not really sure if i need to guard both authentication fields, but IMO makes it clear for a reader.

@jplatte
Copy link
Member

jplatte commented Feb 5, 2021

i'm not really sure if i need to guard both authentication fields, but IMO makes it clear for a reader.

You do need to do that, otherwise the generated code is going to contain duplicate fields when unstable-synapse-quirks is active.

Thanks for your work on this! 🙂

@jplatte jplatte enabled auto-merge (squash) February 5, 2021 12:40
@jplatte jplatte merged commit f8eedfe into ruma:main Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Profile API can require authentication
2 participants