From 6d811734f4aeaf4a6d3706c490f43030a42150a3 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 4 Sep 2020 09:24:12 +0100 Subject: [PATCH] Fix soft crash from TruncatedList in the createReactClass conversion --- src/components/views/rooms/MemberList.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/views/rooms/MemberList.js b/src/components/views/rooms/MemberList.js index e84b27b590..1fdc67eee7 100644 --- a/src/components/views/rooms/MemberList.js +++ b/src/components/views/rooms/MemberList.js @@ -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({