From 16652241a82bd7bc333654710a915eef4fdf593d Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Tue, 7 Jan 2020 10:58:47 -0300 Subject: [PATCH] [FIX] Draft messages not working with themed Messagebox (#1525) --- app/containers/MessageBox/index.js | 3 +-- app/views/RoomView/index.js | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/containers/MessageBox/index.js b/app/containers/MessageBox/index.js index d8b9e01c..d5f9e693 100644 --- a/app/containers/MessageBox/index.js +++ b/app/containers/MessageBox/index.js @@ -42,7 +42,6 @@ import { MENTIONS_TRACKING_TYPE_USERS } from './constants'; import CommandsPreview from './CommandsPreview'; -import { withTheme } from '../../theme'; const imagePickerConfig = { cropping: true, @@ -888,4 +887,4 @@ const dispatchToProps = ({ typing: (rid, status) => userTypingAction(rid, status) }); -export default connect(mapStateToProps, dispatchToProps, null, { forwardRef: true })(withTheme(MessageBox)); +export default connect(mapStateToProps, dispatchToProps, null, { forwardRef: true })(MessageBox); diff --git a/app/views/RoomView/index.js b/app/views/RoomView/index.js index 79b01658..4d55a21f 100644 --- a/app/views/RoomView/index.js +++ b/app/views/RoomView/index.js @@ -813,6 +813,7 @@ class RoomView extends React.Component { tmid={this.tmid} roomType={room.t} isFocused={navigation.isFocused} + theme={theme} message={selectedMessage} editing={editing} editRequest={this.onEditRequest}