1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00
This commit is contained in:
Bruno Windels
2018-08-27 18:52:33 +02:00
parent 6a077655e9
commit 06160f5fae

View File

@@ -125,10 +125,9 @@ module.exports = React.createClass({
if (totalMemberCount == 2) {
const myUserId = MatrixClientPeg.get().getUserId();
otherMember = members.find(m => m.userId !== myUserId);
} else if(totalMemberCount == 1) {
} else if (totalMemberCount == 1) {
otherMember = members[0];
}
}
if (otherMember) {
return otherMember.getAvatarUrl(