Skip to content

Commit b7f96c2

Browse files
Merge branch 'next'
2 parents 992de83 + c85b492 commit b7f96c2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-chat-elements",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"description": "Reactjs chat components",
55
"author": "Avare Kodcu <abdurrahmaneker58@gmail.com>",
66
"main": "dist/main.js",

src/FileMessage/FileMessage.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ const Circle = ProgressBar.Circle;
99

1010
export class FileMessage extends Component {
1111

12-
onClick() {
12+
onClick(e) {
1313
if (!this.props.data.status)
1414
return;
1515

1616
if (!this.props.data.status.download && this.props.onDownload instanceof Function)
17-
this.props.onDownload();
17+
this.props.onDownload(e);
1818
else if (this.props.data.status.download && this.props.onOpen instanceof Function)
19-
this.props.onOpen();
19+
this.props.onOpen(e);
2020
}
2121

2222
render() {

0 commit comments

Comments
 (0)