[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;
|
params.roomAnnouncement = announcement;
|
||||||
}
|
}
|
||||||
// Room Type
|
// Room Type
|
||||||
// This logic is strange to me, since in the code t is boolean, but room.t is string
|
if ((room.t === SubscriptionType.GROUP) !== t) {
|
||||||
if (!!room.t !== t) {
|
|
||||||
params.roomType = t ? 'p' : 'c';
|
params.roomType = t ? 'p' : 'c';
|
||||||
}
|
}
|
||||||
// Read Only
|
// Read Only
|
||||||
|
|
Loading…
Reference in New Issue