Fallback for the SafetyNumberViewer

This commit is contained in:
Josh Perez 2022-03-02 13:24:28 -05:00 committed by GitHub
parent da7a76e03f
commit 0872afba3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 32 additions and 61 deletions

View file

@ -5,16 +5,12 @@ import { connect } from 'react-redux';
import { mapDispatchToProps } from '../actions';
import { SafetyNumberViewer } from '../../components/SafetyNumberViewer';
import type { StateType } from '../reducer';
import type { SafetyNumberProps } from '../../components/SafetyNumberChangeDialog';
import { getContactSafetyNumber } from '../selectors/safetyNumber';
import { getConversationSelector } from '../selectors/conversations';
import { getIntl } from '../selectors/user';
export type Props = {
contactID: string;
onClose?: () => void;
};
const mapStateToProps = (state: StateType, props: Props) => {
const mapStateToProps = (state: StateType, props: SafetyNumberProps) => {
return {
...props,
...getContactSafetyNumber(state, props),