@@ -35,7 +40,7 @@ export function DeliveryIssueDialog(props: PropsType): React.ReactElement {
,
}}
diff --git a/ts/components/conversation/DeliveryIssueNotification.stories.tsx b/ts/components/conversation/DeliveryIssueNotification.stories.tsx
index 46dad49e5a..38659d6dc0 100644
--- a/ts/components/conversation/DeliveryIssueNotification.stories.tsx
+++ b/ts/components/conversation/DeliveryIssueNotification.stories.tsx
@@ -18,6 +18,15 @@ const sender = getDefaultConversation();
storiesOf('Components/Conversation/DeliveryIssueNotification', module).add(
'Default',
() => {
- return ;
+ return (
+
+ );
+ }
+);
+
+storiesOf('Components/Conversation/DeliveryIssueNotification', module).add(
+ 'In Group',
+ () => {
+ return ;
}
);
diff --git a/ts/components/conversation/DeliveryIssueNotification.tsx b/ts/components/conversation/DeliveryIssueNotification.tsx
index 24ebdf40c4..0519803c60 100644
--- a/ts/components/conversation/DeliveryIssueNotification.tsx
+++ b/ts/components/conversation/DeliveryIssueNotification.tsx
@@ -12,6 +12,7 @@ import { DeliveryIssueDialog } from './DeliveryIssueDialog';
export type PropsDataType = {
sender?: ConversationType;
+ inGroup: boolean;
};
type PropsHousekeepingType = {
@@ -23,7 +24,7 @@ export type PropsType = PropsDataType & PropsHousekeepingType;
export function DeliveryIssueNotification(
props: PropsType
): ReactElement | null {
- const { i18n, sender } = props;
+ const { i18n, inGroup, sender } = props;
const [isDialogOpen, setIsDialogOpen] = useState(false);
const openDialog = useCallback(() => {
@@ -59,6 +60,7 @@ export function DeliveryIssueNotification(
{isDialogOpen ? (
diff --git a/ts/state/selectors/message.ts b/ts/state/selectors/message.ts
index e0697d243d..88271d0f7e 100644
--- a/ts/state/selectors/message.ts
+++ b/ts/state/selectors/message.ts
@@ -857,9 +857,11 @@ function getPropsForDeliveryIssue(
conversationSelector: GetConversationByIdType
): DeliveryIssuePropsType {
const sender = conversationSelector(message.sourceUuid);
+ const conversation = conversationSelector(message.conversationId);
return {
sender,
+ inGroup: conversation.type === 'group',
};
}