Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Howto add custom profile info in account_data and show to friends? #14357

Closed
Narsiss opened this issue Nov 3, 2022 · 1 comment
Closed

Howto add custom profile info in account_data and show to friends? #14357

Narsiss opened this issue Nov 3, 2022 · 1 comment

Comments

@Narsiss
Copy link

Narsiss commented Nov 3, 2022

I've add some info about user by this API:
https://matrix.org/docs/api/#put-/_matrix/client/v3/user/-userId-/account_data/-type-

But cannot query by "/_matrix/client/v3/profile/{userId}", only shows the name and avatar, is there any config let users show there infomation?

@DMRobertson
Copy link
Contributor

Note that account data and profiles are separate, unrelated concepts. From your link:

[Account data] is only visible to the user that set the account data.

The /profile endpoint only returns a name and avatar at present (https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3profileuserid), though there have been discussions about extending it: see matrix-org/matrix-spec-proposals#1769 .

This isn't something you can do in Synapse at present. The best approximation would be to add extra content to you m.room.member events, but a) this would be a hack and clients wouldn't support it at all; b) this wouldn't scale: you'd have to do this once for every room you're in.

@DMRobertson DMRobertson closed this as not planned Won't fix, can't repro, duplicate, stale Nov 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants