[FIX] Param privacy when editing room info (#3962)
This commit is contained in:
parent
ddfa8b1ca4
commit
3e5b833759
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue