Fix issue where name could be undefined (#639)
This commit is contained in:
parent
655a050524
commit
956e203be8
1 changed files with 4 additions and 1 deletions
|
|
@ -214,10 +214,13 @@ class ChannelDrawerList extends Component {
|
|||
const users = Object.values(profiles);
|
||||
|
||||
return users.map((u) => {
|
||||
const displayName = displayUsername(u, myPreferences);
|
||||
|
||||
return {
|
||||
id: u.id,
|
||||
status: statuses[u.id],
|
||||
display_name: displayUsername(u, myPreferences),
|
||||
display_name: displayName,
|
||||
name: displayName,
|
||||
type: General.DM_CHANNEL,
|
||||
fake: true
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue