shouldOmitSelf -> includeSelf
This commit is contained in:
parent
6bc9b32ab7
commit
e3405cfd95
1 changed files with 5 additions and 5 deletions
|
@ -43,9 +43,9 @@ module.exports = React.createClass({
|
||||||
groupId: PropTypes.string,
|
groupId: PropTypes.string,
|
||||||
// The type of entity to search for. Default: 'user'.
|
// The type of entity to search for. Default: 'user'.
|
||||||
pickerType: PropTypes.oneOf(['user', 'room']),
|
pickerType: PropTypes.oneOf(['user', 'room']),
|
||||||
// Whether the current user should be omitted from the address returned. Only
|
// Whether the current user should be included in the addresses returned. Only
|
||||||
// applicable when pickerType is `user`. Default: true.
|
// applicable when pickerType is `user`. Default: false.
|
||||||
shouldOmitSelf: PropTypes.bool,
|
includeSelf: PropTypes.bool,
|
||||||
},
|
},
|
||||||
|
|
||||||
getDefaultProps: function() {
|
getDefaultProps: function() {
|
||||||
|
@ -54,7 +54,7 @@ module.exports = React.createClass({
|
||||||
focus: true,
|
focus: true,
|
||||||
validAddressTypes: addressTypes,
|
validAddressTypes: addressTypes,
|
||||||
pickerType: 'user',
|
pickerType: 'user',
|
||||||
shouldOmitSelf: true,
|
includeSelf: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -371,7 +371,7 @@ module.exports = React.createClass({
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.props.shouldOmitSelf &&
|
if (!this.props.includeSelf &&
|
||||||
result.user_id === MatrixClientPeg.get().credentials.userId
|
result.user_id === MatrixClientPeg.get().credentials.userId
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue