Moves various panels out to ConversationView react

This commit is contained in:
Josh Perez
2022-12-14 20:10:09 -05:00
committed by GitHub
parent 15efbde23d
commit e142cb47f5
32 changed files with 287 additions and 473 deletions

View File

@@ -15,6 +15,7 @@ import type {
AttachmentDraftType,
InMemoryAttachmentDraftType,
} from '../../types/Attachment';
import type { BoundActionCreatorsMapObject } from '../../hooks/useBoundActions';
import type {
DraftBodyRangesType,
ReplacementValuesType,
@@ -66,6 +67,7 @@ import { writeDraftAttachment } from '../../util/writeDraftAttachment';
import { getMessageById } from '../../messages/getMessageById';
import { canReply } from '../selectors/message';
import { getConversationSelector } from '../selectors/conversations';
import { useBoundActions } from '../../hooks/useBoundActions';
// State
@@ -153,6 +155,10 @@ export const actions = {
setQuotedMessage,
};
export const useComposerActions = (): BoundActionCreatorsMapObject<
typeof actions
> => useBoundActions(actions);
function sendMultiMediaMessage(
conversationId: string,
options: {