Skip to content

Commit

Permalink
Preparing for message seinding.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Campbell committed Sep 2, 2016
1 parent f3a0d54 commit 472c7fb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions web/components/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ class Chat extends React.Component {
messages: newMessages,
typing: chat.state.typing
})

this.socket.emit('message', {attachments: [
{
type: type,
data: e.target.result
}
]})
};
})(f);

Expand Down
5 changes: 5 additions & 0 deletions web/dist/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -22437,6 +22437,11 @@
messages: newMessages,
typing: chat.state.typing
});

this.socket.emit('message', { attachments: [{
type: type,
data: e.target.result
}] });
};
}(f);

Expand Down

0 comments on commit 472c7fb

Please sign in to comment.