fix: Error while editing team description (#4985)
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
This commit is contained in:
parent
88144441fd
commit
b51d7eeab3
|
@ -281,7 +281,7 @@ class RoomInfoEditView extends React.Component<IRoomInfoEditViewProps, IRoomInfo
|
|||
const params = {} as IRoomSettings;
|
||||
|
||||
// Name
|
||||
if (room.name !== name) {
|
||||
if (getRoomTitle(room) !== name) {
|
||||
params.roomName = name;
|
||||
}
|
||||
// Avatar
|
||||
|
@ -318,7 +318,7 @@ class RoomInfoEditView extends React.Component<IRoomInfoEditViewProps, IRoomInfo
|
|||
}
|
||||
|
||||
// Join Code
|
||||
if (this.randomValue !== joinCode) {
|
||||
if (room.joinCodeRequired && this.randomValue !== joinCode) {
|
||||
params.joinCode = joinCode;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue