Filtered out sender from story Sent To list
This commit is contained in:
parent
d911439f0f
commit
004abd44b5
1 changed files with 8 additions and 2 deletions
|
@ -70,8 +70,14 @@ export const StoryDetailsModal = ({
|
||||||
timestamp,
|
timestamp,
|
||||||
expirationTimestamp,
|
expirationTimestamp,
|
||||||
}: PropsType): JSX.Element => {
|
}: PropsType): JSX.Element => {
|
||||||
const contactsBySendStatus = sendState
|
// the sender is included in the sendState data
|
||||||
? groupBy(sendState, contact => contact.status)
|
// but we don't want to show the sender in the "Sent To" list
|
||||||
|
const actualRecipientsSendState = sendState?.filter(
|
||||||
|
s => s.recipient.id !== sender.id
|
||||||
|
);
|
||||||
|
|
||||||
|
const contactsBySendStatus = actualRecipientsSendState
|
||||||
|
? groupBy(actualRecipientsSendState, contact => contact.status)
|
||||||
: undefined;
|
: undefined;
|
||||||
|
|
||||||
let content: JSX.Element;
|
let content: JSX.Element;
|
||||||
|
|
Loading…
Reference in a new issue