mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 02:05:45 +03:00
Fix soft crash from TruncatedList in the createReactClass conversion
This commit is contained in:
parent
e624ce11b4
commit
6d811734f4
1 changed files with 6 additions and 6 deletions
|
@ -247,15 +247,15 @@ export default class MemberList extends React.Component {
|
||||||
return filteredAndSortedMembers;
|
return filteredAndSortedMembers;
|
||||||
}
|
}
|
||||||
|
|
||||||
_createOverflowTileJoined(overflowCount, totalCount) {
|
_createOverflowTileJoined = (overflowCount, totalCount) => {
|
||||||
return this._createOverflowTile(overflowCount, totalCount, this._showMoreJoinedMemberList);
|
return this._createOverflowTile(overflowCount, totalCount, this._showMoreJoinedMemberList);
|
||||||
}
|
};
|
||||||
|
|
||||||
_createOverflowTileInvited(overflowCount, totalCount) {
|
_createOverflowTileInvited = (overflowCount, totalCount) => {
|
||||||
return this._createOverflowTile(overflowCount, totalCount, this._showMoreInvitedMemberList);
|
return this._createOverflowTile(overflowCount, totalCount, this._showMoreInvitedMemberList);
|
||||||
}
|
};
|
||||||
|
|
||||||
_createOverflowTile(overflowCount, totalCount, onClick) {
|
_createOverflowTile = (overflowCount, totalCount, onClick) => {
|
||||||
// For now we'll pretend this is any entity. It should probably be a separate tile.
|
// For now we'll pretend this is any entity. It should probably be a separate tile.
|
||||||
const EntityTile = sdk.getComponent("rooms.EntityTile");
|
const EntityTile = sdk.getComponent("rooms.EntityTile");
|
||||||
const BaseAvatar = sdk.getComponent("avatars.BaseAvatar");
|
const BaseAvatar = sdk.getComponent("avatars.BaseAvatar");
|
||||||
|
@ -266,7 +266,7 @@ export default class MemberList extends React.Component {
|
||||||
} name={text} presenceState="online" suppressOnHover={true}
|
} name={text} presenceState="online" suppressOnHover={true}
|
||||||
onClick={onClick} />
|
onClick={onClick} />
|
||||||
);
|
);
|
||||||
}
|
};
|
||||||
|
|
||||||
_showMoreJoinedMemberList = () => {
|
_showMoreJoinedMemberList = () => {
|
||||||
this.setState({
|
this.setState({
|
||||||
|
|
Loading…
Reference in a new issue