ConversationView: Pull various functions out of getMessageActions
This commit is contained in:
parent
5a98fc2f4c
commit
1e282ee5d0
42 changed files with 440 additions and 570 deletions
|
@ -12,7 +12,6 @@ import { getPreferredBadgeSelector } from '../selectors/badges';
|
|||
import { getIntl, getInteractionMode, getTheme } from '../selectors/user';
|
||||
import { renderAudioAttachment } from './renderAudioAttachment';
|
||||
import { getContactNameColorSelector } from '../selectors/conversations';
|
||||
import { markViewed } from '../ducks/conversations';
|
||||
|
||||
export { Contact } from '../../components/conversation/MessageDetail';
|
||||
export type OwnProps = Omit<
|
||||
|
@ -26,7 +25,6 @@ export type OwnProps = Omit<
|
|||
| 'theme'
|
||||
| 'showContactModal'
|
||||
| 'showConversation'
|
||||
| 'markViewed'
|
||||
>;
|
||||
|
||||
const mapStateToProps = (
|
||||
|
@ -40,12 +38,6 @@ const mapStateToProps = (
|
|||
receivedAt,
|
||||
sentAt,
|
||||
|
||||
kickOffAttachmentDownload,
|
||||
markAttachmentAsCorrupted,
|
||||
openGiftBadge,
|
||||
openLink,
|
||||
showExpiredIncomingTapToViewToast,
|
||||
showExpiredOutgoingTapToViewToast,
|
||||
startConversation,
|
||||
} = props;
|
||||
|
||||
|
@ -72,14 +64,7 @@ const mapStateToProps = (
|
|||
interactionMode: getInteractionMode(state),
|
||||
theme: getTheme(state),
|
||||
|
||||
kickOffAttachmentDownload,
|
||||
markAttachmentAsCorrupted,
|
||||
markViewed,
|
||||
openGiftBadge,
|
||||
openLink,
|
||||
renderAudioAttachment,
|
||||
showExpiredIncomingTapToViewToast,
|
||||
showExpiredOutgoingTapToViewToast,
|
||||
startConversation,
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue