Edit distribution lists via story settings menu

This commit is contained in:
Josh Perez 2022-07-20 20:07:09 -04:00 committed by GitHub
parent 9986d10947
commit e321e1fea8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
42 changed files with 2403 additions and 102 deletions

View file

@ -10,6 +10,7 @@ import { SmartContactModal } from './ContactModal';
import { SmartForwardMessageModal } from './ForwardMessageModal';
import { SmartProfileEditorModal } from './ProfileEditorModal';
import { SmartSafetyNumberModal } from './SafetyNumberModal';
import { SmartStoriesSettingsModal } from './StoriesSettingsModal';
import { getIntl } from '../selectors/user';
@ -25,6 +26,10 @@ function renderForwardMessageModal(): JSX.Element {
return <SmartForwardMessageModal />;
}
function renderStoriesSettings(): JSX.Element {
return <SmartStoriesSettingsModal />;
}
const mapStateToProps = (state: StateType) => {
const i18n = getIntl(state);
@ -34,6 +39,7 @@ const mapStateToProps = (state: StateType) => {
renderContactModal,
renderForwardMessageModal,
renderProfileEditor,
renderStoriesSettings,
renderSafetyNumber: () => (
<SmartSafetyNumberModal
contactID={String(state.globalModals.safetyNumberModalContactId)}