Fix ability to feature self in a group summary

By default the AddressPicker would omit the currently logged-in user. This adds a property to override that to allow "self" to be picked.
This commit is contained in:
Luke Barnard 2017-09-27 11:04:41 +01:00
parent 1ca9102442
commit 6bc9b32ab7
2 changed files with 9 additions and 1 deletions

View file

@ -239,6 +239,7 @@ const RoleUserList = React.createClass({
button: _t("Add to summary"),
validAddressTypes: ['mx'],
groupId: this.props.groupId,
shouldOmitSelf: false,
onFinished: (success, addrs) => {
if (!success) return;
const errorList = [];