disable editing of open group name

This commit is contained in:
Audric Ackermann 2021-06-24 11:01:03 +10:00
parent f1ee7589a0
commit 54f06cca1b
No known key found for this signature in database
GPG key ID: 999F434D76324AD4
2 changed files with 1 additions and 2 deletions

View file

@ -78,7 +78,7 @@ export class UpdateGroupNameDialog extends React.Component<Props, State> {
);
const isAdmin = this.convo.isPublic()
? this.convo.isAdmin(window.storage.get('primaryDevicePubKey'))
? false // disable editing of opengroup rooms as we don't handle them for now
: true;
return (

View file

@ -10,7 +10,6 @@ import {
updateConfirmModal,
} from '../../../state/ducks/modalDialog';
import { ConversationController } from '../../../session/conversations';
import { UserUtils } from '../../../session/utils';
import {
blockConvoById,
clearNickNameByConvoId,