Make composer duck aware of the conversation it is in
This commit is contained in:
parent
7a076be0e7
commit
198d6f7e26
17 changed files with 449 additions and 170 deletions
|
@ -30,6 +30,7 @@ import {
|
|||
getRecentStickers,
|
||||
} from '../selectors/stickers';
|
||||
import { isSignalConversation } from '../../util/isSignalConversation';
|
||||
import { getComposerStateForConversationIdSelector } from '../selectors/composer';
|
||||
|
||||
type ExternalProps = {
|
||||
id: string;
|
||||
|
@ -67,6 +68,9 @@ const mapStateToProps = (state: StateType, props: ExternalProps) => {
|
|||
receivedPacks.length > 0
|
||||
);
|
||||
|
||||
const composerStateForConversationIdSelector =
|
||||
getComposerStateForConversationIdSelector(state);
|
||||
|
||||
const {
|
||||
attachments: draftAttachments,
|
||||
focusCounter,
|
||||
|
@ -76,7 +80,7 @@ const mapStateToProps = (state: StateType, props: ExternalProps) => {
|
|||
messageCompositionId,
|
||||
quotedMessage,
|
||||
shouldSendHighQualityAttachments,
|
||||
} = state.composer;
|
||||
} = composerStateForConversationIdSelector(id);
|
||||
|
||||
const recentEmojis = selectRecentEmojis(state);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue