Skip to content

Commit

Permalink
fix assignee does not show on Confirm task page
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanDylann committed Aug 23, 2023
1 parent 4f412db commit 0120b53
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/libs/actions/Task.js
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,15 @@ function setAssigneeValue(assigneeEmail, assigneeAccountID, shareDestination, is

if (!isCurrentUser) {
chatReport = ReportUtils.getChatByParticipantsByLoginList([assigneeEmail]) || ReportUtils.getChatByParticipants([assigneeAccountID]);
if (!lodashGet(allPersonalDetails, [assigneeAccountID], undefined) && chatReport) {
const optimisticPersonalDetailsListAction = {
accountID: assigneeAccountID,
avatar: UserUtils.getDefaultAvatarURL(assigneeAccountID),
displayName: assigneeEmail,
login: assigneeEmail,
};
Onyx.merge(ONYXKEYS.PERSONAL_DETAILS_LIST, {[assigneeAccountID]: optimisticPersonalDetailsListAction});
}
if (!chatReport) {
chatReport = ReportUtils.buildOptimisticChatReport([assigneeAccountID]);
chatReport.isOptimisticReport = true;
Expand Down

0 comments on commit 0120b53

Please sign in to comment.