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

Add timezones and pronouns #574

Merged
merged 15 commits into from
Jan 3, 2025
Merged

Conversation

nexy7574
Copy link
Contributor

This PR closes #569

Adds timezones and pronouns support from MSC4133.

example:
image

@nexy7574 nexy7574 changed the title Add timezones and pronouns () Add timezones and pronouns Dec 29, 2024
@nexy7574 nexy7574 marked this pull request as draft December 29, 2024 21:53
@nexy7574
Copy link
Contributor Author

Blocked until element-hq/synapse#17488 is merged, and conduwuit correctly returns JSON for custom keys other than the timezone one. Ideally, other server implementations will have added MSC4133 functionality by this time too.

const pronouns: PronounSet[] = ensureArray(profile["io.fsky.nyx.pronouns"]) as PronounSet[]
return (
<>
<hr/>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<hr/>s should be in UserInfo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there's no extended profile info, this results in there just being a random rule below the mxid that looks quite unsightly

since this function checks beforehand if there's anything to render, returning null if not, the hr isn't rendered in that case. Is there a better way about going about that without calculating whether anything would be shown in UserInfo?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh right I didn't notice the second condition 🤔

web/src/ui/rightpanel/UserExtendedProfile.tsx Outdated Show resolved Hide resolved
web/src/ui/rightpanel/UserExtendedProfile.tsx Outdated Show resolved Hide resolved
web/src/ui/rightpanel/UserExtendedProfile.tsx Outdated Show resolved Hide resolved
web/src/ui/rightpanel/UserInfo.tsx Outdated Show resolved Hide resolved
web/src/ui/rightpanel/UserExtendedProfile.tsx Outdated Show resolved Hide resolved
@tulir tulir marked this pull request as ready for review January 3, 2025 12:23
@tulir tulir merged commit a1a006b into tulir:main Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Profiles: Support MSCs 4247, 4175 & 4133
2 participants