Code review suggestions.

* Reply to broken images.
* Remove 'viewportWidth' from SendMessage.
This commit is contained in:
aforge
2021-09-06 11:26:19 +03:00
parent 3e4ef8347f
commit dd81190ff3
3 changed files with 16 additions and 10 deletions
-1
View File
@@ -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}
-1
View File
@@ -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}