@@ -167,7 +167,9 @@ Embed this room
167167` ) ;
168168 await axios ( {
169169 method : "post" ,
170- url : `${ rcApiDomain } /api/v1/channels.setDescription` ,
170+ url : `${ rcApiDomain } /api/v1/${
171+ publicChannel ? "channels" : "groups"
172+ } .setDescription`,
171173 headers : {
172174 "X-Auth-Token" : Cookies . get ( "rc_token" ) ,
173175 "X-User-Id" : Cookies . get ( "rc_uid" ) ,
@@ -223,7 +225,7 @@ Embed this room
223225 maxWidth = "sm"
224226 fullWidth = { true }
225227 >
226- < DialogTitle > Create Room</ DialogTitle >
228+ < DialogTitle > Create Room</ DialogTitle >
227229 < DialogContent >
228230 < p className = "create-dialog-description" >
229231 Rooms are where your teams communicate.
@@ -260,42 +262,40 @@ Embed this room
260262 ) }
261263 < br />
262264 < div className = "form-switch" >
263- < p > Show All Repositories</ p >
264- < FormControlLabel
265- className = "form-control-label"
266- control = {
267- < RCSwitch
268- checked = { this . state . includePrivateRepositories }
269- onChange = { this . handleAllRepositories }
270- name = "includePrivateRepositories"
271- />
272- }
273- />
265+ < p > Show All Repositories</ p >
266+ < FormControlLabel
267+ className = "form-control-label"
268+ control = {
269+ < RCSwitch
270+ checked = { this . state . includePrivateRepositories }
271+ onChange = { this . handleAllRepositories }
272+ name = "includePrivateRepositories"
273+ />
274+ }
275+ />
274276 </ div >
275-
277+
276278 < p className = "create-dialog-description" >
277- { includePrivateRepositories ? "Both public and private " : "Only public " }
279+ { includePrivateRepositories
280+ ? "Both public and private "
281+ : "Only public " }
278282 repositories are visible.
279283 </ p >
280284 < br />
281285 < div className = "form-switch" >
282-
283- < p >
284- Public Room
285- </ p >
286- < FormControlLabel
287- className = "form-control-label"
288- control = {
289- < RCSwitch
290- checked = { publicChannel }
291- onChange = { ( ) =>
292- this . setState ( { publicChannel : ! publicChannel } )
293- }
294- name = "publicChannel"
295-
296- />
297- }
298- />
286+ < p > Public Room</ p >
287+ < FormControlLabel
288+ className = "form-control-label"
289+ control = {
290+ < RCSwitch
291+ checked = { publicChannel }
292+ onChange = { ( ) =>
293+ this . setState ( { publicChannel : ! publicChannel } )
294+ }
295+ name = "publicChannel"
296+ />
297+ }
298+ />
299299 </ div >
300300 < p className = "create-dialog-description" >
301301 { publicChannel
0 commit comments