fix DM's channel displayname (instead of "Someone") after creating a DM (#1721)
This commit is contained in:
parent
78acd89222
commit
4db67a9734
1 changed files with 2 additions and 1 deletions
|
|
@ -382,11 +382,12 @@ class MoreDirectMessages extends PureComponent {
|
|||
makeDirectChannel = async (id) => {
|
||||
const {
|
||||
actions,
|
||||
allProfiles,
|
||||
intl,
|
||||
teammateNameDisplay,
|
||||
} = this.props;
|
||||
|
||||
const user = this.state.profiles[id];
|
||||
const user = allProfiles[id];
|
||||
|
||||
const displayName = displayUsername(user, teammateNameDisplay);
|
||||
actions.setChannelDisplayName(displayName);
|
||||
|
|
|
|||
Loading…
Reference in a new issue