Skip to content

Commit

Permalink
Merge pull request #23053 from honnamkuan/22193
Browse files Browse the repository at this point in the history
generate optimisticAccountID for details page of users without prior chat history
  • Loading branch information
yuwenmemon authored Jul 18, 2023
2 parents a8cbb93 + 4e18161 commit 105ca33
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/DetailsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,12 @@ function DetailsPage(props) {
avatar: UserUtils.getDefaultAvatar(CONST.ACCOUNT_ID.CONCIERGE),
};
} else {
const optimisticAccountID = UserUtils.generateAccountID();
details = {
accountID: -1,
accountID: optimisticAccountID,
login,
displayName: login,
avatar: UserUtils.getDefaultAvatar(),
avatar: UserUtils.getDefaultAvatar(optimisticAccountID),
};
}
}
Expand Down

0 comments on commit 105ca33

Please sign in to comment.