Merge pull request #699 from matrix-org/luke/fix-avatar-initials
Display avatar initials in typing notifications
This commit is contained in:
commit
6945e7c154
1 changed files with 1 additions and 3 deletions
|
@ -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}
|
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue