mirror of
https://github.com/element-hq/element-web
synced 2024-10-25 20:26:51 +03:00
change variable names for clarity
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
1346f47a12
commit
3b141d7a84
1 changed files with 4 additions and 4 deletions
|
@ -589,12 +589,12 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
const GroupInviteTile = sdk.getComponent('groups.GroupInviteTile');
|
const GroupInviteTile = sdk.getComponent('groups.GroupInviteTile');
|
||||||
for (const group of MatrixClientPeg.get().getGroups()) {
|
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
|
// filter to only groups in invite state and group_id starts with filter or group name includes it
|
||||||
if (membership !== 'invite') continue;
|
if (myMembership !== 'invite') continue;
|
||||||
if (lcFilter && !id.toLowerCase().startsWith(lcFilter) &&
|
if (lcFilter && !groupId.toLowerCase().startsWith(lcFilter) &&
|
||||||
!(name && name.toLowerCase().includes(lcFilter))) continue;
|
!(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;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue