From 153e63b6aa863e9d55150ec38e288101215f6515 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 1 Oct 2020 13:44:16 -0600 Subject: [PATCH] Fix conditional on communities prototype room creation dialog --- src/components/structures/MatrixChat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/MatrixChat.tsx b/src/components/structures/MatrixChat.tsx index a638ad6de1..19418df414 100644 --- a/src/components/structures/MatrixChat.tsx +++ b/src/components/structures/MatrixChat.tsx @@ -1019,7 +1019,7 @@ export default class MatrixChat extends React.PureComponent { const communityId = CommunityPrototypeStore.instance.getSelectedCommunityId(); if (communityId) { // double check the user will have permission to associate this room with the community - if (CommunityPrototypeStore.instance.isAdminOf(communityId)) { + if (!CommunityPrototypeStore.instance.isAdminOf(communityId)) { Modal.createTrackedDialog('Pre-failure to create room', '', ErrorDialog, { title: _t("Cannot create rooms in this community"), description: _t("You do not have permission to create rooms in this community."),