Skip to content

Commit

Permalink
[MM-11974] Change default return string for channel displayname (matt…
Browse files Browse the repository at this point in the history
…ermost#634)

* [MM-11974] Change default return string for channel displayname

* Add comment
sudheerDev authored Sep 14, 2018

Verified

This commit was signed with the committer’s verified signature. The key has expired.
Czaki Grzegorz Bokota
1 parent b94c4bd commit 9d47dbf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/channel_utils.js
Original file line number Diff line number Diff line change
@@ -70,7 +70,9 @@ export function completeDirectChannelInfo(usersState, teammateNameDisplay, chann
const teammateId = getUserIdFromChannelName(usersState.currentUserId, channel.name);

return Object.assign(dmChannelClone, {
display_name: displayUsername(usersState.profiles[teammateId], teammateNameDisplay),

// return empty string instead of `someone` default string for display_name
display_name: displayUsername(usersState.profiles[teammateId], teammateNameDisplay, false),
teammate_id: teammateId,
status: usersState.statuses[teammateId] || 'offline',
});

0 comments on commit 9d47dbf

Please sign in to comment.