From be905ac7be1aaee660492d371ab8901ab5ee796a Mon Sep 17 00:00:00 2001 From: Ajay Bura Date: Wed, 5 Jan 2022 17:50:50 +0530 Subject: [PATCH] Hide role dropdown icon in profile viewer (#215) Signed-off-by: Ajay Bura --- src/app/organisms/profile-viewer/ProfileViewer.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/organisms/profile-viewer/ProfileViewer.jsx b/src/app/organisms/profile-viewer/ProfileViewer.jsx index 2504055..3b7a07c 100644 --- a/src/app/organisms/profile-viewer/ProfileViewer.jsx +++ b/src/app/organisms/profile-viewer/ProfileViewer.jsx @@ -261,6 +261,7 @@ function ProfileViewer() { function renderProfile() { const member = room.getMember(userId) || mx.getUser(userId) || {}; const avatarMxc = member.getMxcAvatarUrl?.() || member.avatarUrl; + const canChangeRole = room.currentState.maySendEvent('m.room.power_levels', mx.getUserId()); return (
@@ -277,7 +278,7 @@ function ProfileViewer() {
Role - +