diff --git a/src/app/organisms/profile-viewer/ProfileViewer.jsx b/src/app/organisms/profile-viewer/ProfileViewer.jsx
index 6705b29..191678a 100644
--- a/src/app/organisms/profile-viewer/ProfileViewer.jsx
+++ b/src/app/organisms/profile-viewer/ProfileViewer.jsx
@@ -92,6 +92,9 @@ function ProfileFooter({ roomId, userId, onRequestClose }) {
const [isInviting, setIsInviting] = useState(false);
const [isInvited, setIsInvited] = useState(member?.membership === 'invite');
+ const myPowerlevel = room.getMember(mx.getUserId()).powerLevel;
+ const canIKick = room.currentState.hasSufficientPowerLevelFor('kick', myPowerlevel);
+
useEffect(() => () => {
isMountedRef.current = false;
}, []);
@@ -180,8 +183,11 @@ function ProfileFooter({ roomId, userId, onRequestClose }) {
{isCreatingDM ? 'Creating room...' : 'Message'}
{ member?.membership === 'join' && }
- {room.canInvite(mx.getUserId()) && isInvitable && (
-