From 23ca02dd3825835b74f887b222105db0a9627d05 Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Tue, 31 Mar 2020 11:50:37 -0400 Subject: [PATCH] chat: settings pass 'groups' prop from permissions --- pkg/interface/chat/src/js/components/settings.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/interface/chat/src/js/components/settings.js b/pkg/interface/chat/src/js/components/settings.js index 745f2a5bc0..e0be5cf343 100644 --- a/pkg/interface/chat/src/js/components/settings.js +++ b/pkg/interface/chat/src/js/components/settings.js @@ -214,6 +214,11 @@ export class SettingsScreen extends Component { ); } + let groups = {}; + Object.keys(props.permissions).forEach((pem) => { + groups[pem] = props.permissions[pem].who; + }); + return (
@@ -223,7 +228,7 @@ export class SettingsScreen extends Component { group to add this chat to.