mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 04:06:44 +02:00
Merge pull request #5170 from matrix-org/t3chguy/fix/15091
Fix soft crash from TruncatedList in the createReactClass conversion
This commit is contained in:
commit
4b748b41ca
@ -247,15 +247,15 @@ export default class MemberList extends React.Component {
|
||||
return filteredAndSortedMembers;
|
||||
}
|
||||
|
||||
_createOverflowTileJoined(overflowCount, totalCount) {
|
||||
_createOverflowTileJoined = (overflowCount, totalCount) => {
|
||||
return this._createOverflowTile(overflowCount, totalCount, this._showMoreJoinedMemberList);
|
||||
}
|
||||
};
|
||||
|
||||
_createOverflowTileInvited(overflowCount, totalCount) {
|
||||
_createOverflowTileInvited = (overflowCount, totalCount) => {
|
||||
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.
|
||||
const EntityTile = sdk.getComponent("rooms.EntityTile");
|
||||
const BaseAvatar = sdk.getComponent("avatars.BaseAvatar");
|
||||
@ -266,7 +266,7 @@ export default class MemberList extends React.Component {
|
||||
} name={text} presenceState="online" suppressOnHover={true}
|
||||
onClick={onClick} />
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
_showMoreJoinedMemberList = () => {
|
||||
this.setState({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user