[FIX] Param privacy when editing room info (#3962)

This commit is contained in:
Reinaldo Neto 2022-03-25 10:02:09 -03:00 committed by GitHub
parent ddfa8b1ca4
commit 3e5b833759
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -293,8 +293,7 @@ class RoomInfoEditView extends React.Component<IRoomInfoEditViewProps, IRoomInfo
params.roomAnnouncement = announcement;
}
// Room Type
// This logic is strange to me, since in the code t is boolean, but room.t is string
if (!!room.t !== t) {
if ((room.t === SubscriptionType.GROUP) !== t) {
params.roomType = t ? 'p' : 'c';
}
// Read Only