mirror of
https://github.com/urbit/shrub.git
synced 2024-11-24 04:58:08 +03:00
chat: settings pass 'groups' prop from permissions
This commit is contained in:
parent
12f150659b
commit
23ca02dd38
@ -214,6 +214,11 @@ export class SettingsScreen extends Component {
|
||||
);
|
||||
}
|
||||
|
||||
let groups = {};
|
||||
Object.keys(props.permissions).forEach((pem) => {
|
||||
groups[pem] = props.permissions[pem].who;
|
||||
});
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div className={"w-100 fl mt3"} style={{maxWidth: "29rem"}}>
|
||||
@ -223,7 +228,7 @@ export class SettingsScreen extends Component {
|
||||
group to add this chat to.
|
||||
</p>
|
||||
<InviteSearch
|
||||
permissions={props.permissions}
|
||||
groups={groups}
|
||||
contacts={props.contacts}
|
||||
associations={props.associations}
|
||||
groupResults={true}
|
||||
|
Loading…
Reference in New Issue
Block a user