You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Merge pull request #5274 from matrix-org/travis/fix-community-join
Fix conditional on communities prototype room creation dialog
This commit is contained in:
@@ -1019,7 +1019,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
|||||||
const communityId = CommunityPrototypeStore.instance.getSelectedCommunityId();
|
const communityId = CommunityPrototypeStore.instance.getSelectedCommunityId();
|
||||||
if (communityId) {
|
if (communityId) {
|
||||||
// double check the user will have permission to associate this room with the community
|
// 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, {
|
Modal.createTrackedDialog('Pre-failure to create room', '', ErrorDialog, {
|
||||||
title: _t("Cannot create rooms in this community"),
|
title: _t("Cannot create rooms in this community"),
|
||||||
description: _t("You do not have permission to create rooms in this community."),
|
description: _t("You do not have permission to create rooms in this community."),
|
||||||
|
|||||||
Reference in New Issue
Block a user