ConversationView: Move attachments processing into redux
This commit is contained in:
parent
ff6750e4fd
commit
452e0b7b31
25 changed files with 544 additions and 763 deletions
|
@ -14,6 +14,7 @@ import type { TimelinePropsType } from './Timeline';
|
|||
import { SmartTimeline } from './Timeline';
|
||||
|
||||
export type PropsType = {
|
||||
conversationId: string;
|
||||
compositionAreaProps: Pick<
|
||||
CompositionAreaPropsType,
|
||||
| 'clearQuotedMessage'
|
||||
|
@ -38,10 +39,15 @@ export type PropsType = {
|
|||
};
|
||||
|
||||
const mapStateToProps = (_state: StateType, props: PropsType) => {
|
||||
const { compositionAreaProps, conversationHeaderProps, timelineProps } =
|
||||
props;
|
||||
const {
|
||||
compositionAreaProps,
|
||||
conversationHeaderProps,
|
||||
conversationId,
|
||||
timelineProps,
|
||||
} = props;
|
||||
|
||||
return {
|
||||
conversationId,
|
||||
renderCompositionArea: () => (
|
||||
<SmartCompositionArea {...compositionAreaProps} />
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue