diff --git a/apps/chat-e2e/src/testData/expectedConstants.ts b/apps/chat-e2e/src/testData/expectedConstants.ts index dbebd4aee2..ca71e3848f 100644 --- a/apps/chat-e2e/src/testData/expectedConstants.ts +++ b/apps/chat-e2e/src/testData/expectedConstants.ts @@ -82,7 +82,7 @@ export const ExpectedConstants = { regenerateResponseToContinueTooltip: 'Please regenerate response to continue working with chat', regenerateResponseTooltip: 'Regenerate response', - sharedConversationTooltip: 'Shared', + sharedConversationTooltip: 'Shared by me', sharedConversationName: (name: string) => `Share: ${name}`, sharedLink: (invitationLink: string) => { const invitationPath = '/v1/invitations/'; diff --git a/apps/chat/src/components/Common/ShareIcon.tsx b/apps/chat/src/components/Common/ShareIcon.tsx index 6bb9930922..d12710b36a 100644 --- a/apps/chat/src/components/Common/ShareIcon.tsx +++ b/apps/chat/src/components/Common/ShareIcon.tsx @@ -39,6 +39,7 @@ export default function ShareIcon({ iconClassName, iconWrapperClassName, isMyEntity, + sharedWithMe, }: ShareIconProps) { const { t } = useTranslation(Translation.SideBar); const isApplication = featureType === FeatureType.Application; @@ -54,7 +55,7 @@ export default function ShareIcon({ ); if ( - (!isSharingEnabled || !isShared) && + (!isSharingEnabled || (!isShared && (!sharedWithMe || !isApplication))) && (!isPublishingEnabled || !isPublished) && !isMyEntity ) { @@ -64,7 +65,7 @@ export default function ShareIcon({ const AdditionalIcon = isPublished && isPublishingEnabled ? World - : isShared + : isShared || sharedWithMe ? ArrowUpRight : IconPencil; @@ -89,10 +90,12 @@ export default function ShareIcon({