mirror of https://github.com/vector-im/riot-web
change variable names for clarity
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
1346f47a12
commit
3b141d7a84
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue