From 6dc38adeaa37993fef4ae647d82d39a0250b24ca Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 5 Sep 2020 21:48:25 -0500 Subject: [PATCH] Chats: add upload button to chat input --- app/soapbox/features/chats/components/chat_box.js | 6 ++++++ app/styles/chats.scss | 15 +++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/app/soapbox/features/chats/components/chat_box.js b/app/soapbox/features/chats/components/chat_box.js index 12b28d513..e307325a5 100644 --- a/app/soapbox/features/chats/components/chat_box.js +++ b/app/soapbox/features/chats/components/chat_box.js @@ -10,6 +10,7 @@ import { } from 'soapbox/actions/chats'; import { OrderedSet as ImmutableOrderedSet } from 'immutable'; import ChatMessageList from './chat_message_list'; +import UploadButton from 'soapbox/features/compose/components/upload_button'; const messages = defineMessages({ placeholder: { id: 'chat_box.input.placeholder', defaultMessage: 'Send a messageā€¦' }, @@ -91,6 +92,10 @@ class ChatBox extends ImmutablePureComponent { this.markRead(); } + handleFiles = (files) => { + // TODO: Upload attachment + } + render() { const { chatMessageIds, chatId, intl } = this.props; if (!chatMessageIds) return null; @@ -99,6 +104,7 @@ class ChatBox extends ImmutablePureComponent {
+