Don't pass full group to spoofing review dialog
This commit is contained in:
parent
ca3f8b7df0
commit
d18ed40a23
6 changed files with 105 additions and 25 deletions
|
@ -29,6 +29,8 @@ import {
|
|||
} from '../selectors/conversations';
|
||||
|
||||
import { SmartTimelineItem } from './TimelineItem';
|
||||
import { SmartContactSpoofingReviewDialog } from './ContactSpoofingReviewDialog';
|
||||
import type { PropsType as SmartContactSpoofingReviewDialogPropsType } from './ContactSpoofingReviewDialog';
|
||||
import { SmartTypingBubble } from './TypingBubble';
|
||||
import { SmartHeroRow } from './HeroRow';
|
||||
import { renderAudioAttachment } from './renderAudioAttachment';
|
||||
|
@ -139,6 +141,12 @@ function renderItem({
|
|||
);
|
||||
}
|
||||
|
||||
function renderContactSpoofingReviewDialog(
|
||||
props: SmartContactSpoofingReviewDialogPropsType
|
||||
): JSX.Element {
|
||||
return <SmartContactSpoofingReviewDialog {...props} />;
|
||||
}
|
||||
|
||||
function renderHeroRow(
|
||||
id: string,
|
||||
unblurAvatar: () => void,
|
||||
|
@ -286,7 +294,6 @@ const mapStateToProps = (state: StateType, props: ExternalProps) => {
|
|||
return {
|
||||
id,
|
||||
...pick(conversation, ['unreadCount', 'isGroupV1AndDisabled']),
|
||||
conversation,
|
||||
isConversationSelected: state.conversations.selectedConversationId === id,
|
||||
isIncomingMessageRequest: Boolean(
|
||||
conversation.messageRequestsEnabled &&
|
||||
|
@ -306,6 +313,7 @@ const mapStateToProps = (state: StateType, props: ExternalProps) => {
|
|||
i18n: getIntl(state),
|
||||
theme: getTheme(state),
|
||||
renderItem,
|
||||
renderContactSpoofingReviewDialog,
|
||||
renderHeroRow,
|
||||
renderTypingBubble,
|
||||
...actions,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue