Skip to content

Commit

Permalink
generate optimisticAccountID for details page
Browse files Browse the repository at this point in the history
of users without prior chat history
  • Loading branch information
honnamkuan committed Jul 18, 2023
1 parent 5a07bc0 commit 4e18161
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 4e18161

Please sign in to comment.