fix: Error while editing team description (#4985)

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
This commit is contained in:
Reinaldo Neto 2023-03-23 21:27:26 -03:00 committed by GitHub
parent 88144441fd
commit b51d7eeab3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}