diff --git a/lib/selectors/user-selectors.js b/lib/selectors/user-selectors.js --- a/lib/selectors/user-selectors.js +++ b/lib/selectors/user-selectors.js @@ -73,21 +73,15 @@ : null; if (memberInfo.id === currentUserID) { relativeMemberInfos.unshift({ - id: memberInfo.id, - role: memberInfo.role, - permissions: memberInfo.permissions, + ...memberInfo, username, isViewer: true, - isSender: memberInfo.isSender, }); } else { relativeMemberInfos.push({ - id: memberInfo.id, - role: memberInfo.role, - permissions: memberInfo.permissions, + ...memberInfo, username, isViewer: false, - isSender: memberInfo.isSender, }); } }