Skip to content

Commit

Permalink
The name field is not mandatory. (RocketChat#15991)
Browse files Browse the repository at this point in the history
  • Loading branch information
renatobecker authored Dec 17, 2019
1 parent 89796cb commit f1417cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/livechat/server/lib/Helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export const normalizeTransferredByData = (transferredBy, room) => {
return {
_id,
username,
name,
...name && { name },
type,
};
};
2 changes: 1 addition & 1 deletion app/livechat/server/lib/Livechat.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ export const Livechat = {
check(transferredBy, Match.ObjectIncluding({
_id: String,
username: String,
name: String,
name: Match.Maybe(String),
type: String,
}));

Expand Down

0 comments on commit f1417cd

Please sign in to comment.