This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
Use fallback avatar only for DMs with 2 people #6144
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes element-hq/element-web#17559
Fixes element-hq/element-web#9929
Fixes element-hq/element-web#18747
This should cause the following behaviour if a room has no avatar: If a room is a DM and has two members, the other member's (the member that is not you) avatar will be used as the room avatar. In any other case, the first latter of the room name will be used.
Using an avatar of a user in a non-DM/a room with multiple people seems confusing
Here's what your changelog entry will look like:
✨ Features
Preview: https://6157120e7e455f00d5f336ee--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.