use topic.messages directly instead of creating a copy in this.state

This commit is contained in:
or-else
2021-08-16 11:40:30 -07:00
parent 4399428fdf
commit 0840a79024
8 changed files with 262 additions and 136 deletions
+4 -2
View File
@@ -92,8 +92,10 @@ export default class ChatMessage extends React.Component {
attachments.push(<Attachment
tinode={this.props.tinode}
downloadUrl={Drafty.getDownloadUrl(att)}
filename={att.name} uploading={Drafty.isProcessing(att)}
mimetype={att.mime} size={Drafty.getEntitySize(att)}
filename={att.name}
uploading={Drafty.isProcessing(att)}
mimetype={att.mime}
size={Drafty.getEntitySize(att)}
progress={this.state.progress}
onCancelUpload={this.handleCancelUpload}
onError={this.props.onError}