change variable names for clarity

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2018-06-14 16:48:00 +01:00
parent 1346f47a12
commit 3b141d7a84
No known key found for this signature in database
GPG key ID: 3F879DA5AD802A5E

View file

@ -589,12 +589,12 @@ module.exports = React.createClass({
const GroupInviteTile = sdk.getComponent('groups.GroupInviteTile');
for (const group of MatrixClientPeg.get().getGroups()) {
const {groupId: id, name, myMembership: membership} = group;
const {groupId, name, myMembership} = group;
// filter to only groups in invite state and group_id starts with filter or group name includes it
if (membership !== 'invite') continue;
if (lcFilter && !id.toLowerCase().startsWith(lcFilter) &&
if (myMembership !== 'invite') continue;
if (lcFilter && !groupId.toLowerCase().startsWith(lcFilter) &&
!(name && name.toLowerCase().includes(lcFilter))) continue;
ret.push(<GroupInviteTile key={id} group={group} collapsed={this.props.collapsed} />);
ret.push(<GroupInviteTile key={groupId} group={group} collapsed={this.props.collapsed} />);
}
return ret;