Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions app/views/RoomInfoEditView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ const RoomInfoEditView = ({ navigation, route }: IRoomInfoEditViewProps) => {
}

// Encrypted
if (room.encrypted !== encrypted) {
if (room.encrypted !== encrypted && params.roomType !== 'c') {
params.encrypted = encrypted;
}

Expand Down Expand Up @@ -284,7 +284,7 @@ const RoomInfoEditView = ({ navigation, route }: IRoomInfoEditViewProps) => {
const toggleRoomType = (value: boolean) => {
logEvent(events.RI_EDIT_TOGGLE_ROOM_TYPE);
setValue('t', value);
setValue('encrypted', value && encrypted);
setValue('encrypted', !value && encrypted);
};

const toggleReadOnly = (value: boolean) => {
Expand Down Expand Up @@ -462,9 +462,9 @@ const RoomInfoEditView = ({ navigation, route }: IRoomInfoEditViewProps) => {
{encryptionEnabled ? (
<SwitchContainer
value={encrypted as boolean}
disabled={!t}
disabled={t}
leftLabelPrimary={I18n.t('Encrypted')}
leftLabelSecondary={I18n.t('End_to_end_encrypted_room')}
leftLabelSecondary={t ? I18n.t('Channel_hint_encrypted_not_available') : I18n.t('End_to_end_encrypted_room')}
testID='room-info-edit-switch-encrypted'
onValueChange={toggleEncrypted}
labelContainerStyle={styles.hideSystemMessages}
Expand Down