You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-24 06:02:08 +03:00
Display avatar initials in typing notifications
It seems they don't overlap hawkwawdly anymore, so this displays them always. Fixes https://github.com/vector-im/riot-web/issues/3084
This commit is contained in:
@ -223,8 +223,7 @@ module.exports = React.createClass({
|
|||||||
users = users.slice(0, limit - 1);
|
users = users.slice(0, limit - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
let avatars = users.map((u, index) => {
|
const avatars = users.map((u) => {
|
||||||
let showInitial = othersCount === 0 && index === users.length - 1;
|
|
||||||
return (
|
return (
|
||||||
<MemberAvatar
|
<MemberAvatar
|
||||||
key={u.userId}
|
key={u.userId}
|
||||||
@ -232,7 +231,6 @@ module.exports = React.createClass({
|
|||||||
width={24}
|
width={24}
|
||||||
height={24}
|
height={24}
|
||||||
resizeMethod="crop"
|
resizeMethod="crop"
|
||||||
defaultToInitialLetter={showInitial}
|
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user