Code review suggestions.
* Reply to broken images. * Remove 'viewportWidth' from SendMessage.
This commit is contained in:
@@ -46,7 +46,6 @@ export default class DocPreview extends React.PureComponent {
|
||||
<SendMessage
|
||||
noInput={true}
|
||||
tinode={this.props.tinode}
|
||||
viewportWidth={this.props.viewportWidth} // Used by `formatter`.
|
||||
replyTo={this.props.replyTo}
|
||||
formatter={this.props.formatter}
|
||||
onCancelReply={this.props.onCancelReply}
|
||||
|
||||
@@ -74,7 +74,6 @@ export default class ImagePreview extends React.PureComponent {
|
||||
messagePrompt="add_image_caption"
|
||||
acceptBlank={true}
|
||||
tinode={this.props.tinode}
|
||||
viewportWidth={this.props.viewportWidth} // Used by `formatter`.
|
||||
replyTo={this.props.replyTo}
|
||||
formatter={this.props.formatter}
|
||||
onCancelReply={this.props.onCancelReply}
|
||||
|
||||
Reference in New Issue
Block a user