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

On User.avatarUrl and User.displayName update top left menu #3157

Closed
wants to merge 1 commit into from

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Jun 27, 2019

So annoyingly this event in js-sdk seems like it'll only work on presence-enabled HSes:
https://github.com/matrix-org/matrix-js-sdk/blob/18655421923506225b12448d386db881c54edae0/src/models/user.js#L87-L94

Fixes element-hq/element-web#8570

Signed-off-by: Michael Telatynski [email protected]

@turt2live
Copy link
Member

This used to work, and it used to work in settings pre-1.0 - what changed? Do presence-disabled servers still send self-presence down sync?

@t3chguy
Copy link
Member Author

t3chguy commented Oct 26, 2019

So this seems like something is awry with Synapse, even on a presence-enabled server it does not work, a self-presence is received without the extra keys as specified by https://matrix.org/docs/spec/client_server/r0.5.0#events-on-change-of-profile-information

Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

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

the code looks fine, assuming it works (which it sounds like it doesn't)

this.setState({
profileInfo: {
...this.state.profileInfo,
avatarUrl: user.avatarUrl,
Copy link
Member

Choose a reason for hiding this comment

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

we should be sanity checking that this is even the right user...

@t3chguy t3chguy closed this Jul 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changes to displaynames in UserSettings do not immediately update the TopLeftMenu label
2 participants