Fix file dialog opening when sending chat messages

master
Torjus 2018-07-30 11:29:37 +02:00
parent a90c287989
commit c908fa8855
4 changed files with 27 additions and 24 deletions

View File

@ -59,7 +59,7 @@ const shareFiles = async (files) =>
store.dispatch(requestActions.notify({
text : 'Torrent successfully created'
}))
}));
notifyPeers({
magnet : newTorrent.magnetURI
@ -106,7 +106,12 @@ class FileSharing extends Component
multiple
/>
<button onClick={this.handleClick}>share file</button>
<button
type='button'
onClick={this.handleClick}
>
share file
</button>
</div>
);
}

View File

@ -19,7 +19,7 @@ const chatmessages = (state = [], action) =>
case 'ADD_NEW_USER_FILE':
{
const { file } = action.payload;
const { file } = action.payload;
const message = createNewFile(file, 'client', 'Me', undefined);

View File

@ -44,5 +44,3 @@ export const store = createStore(
undefined,
enhancer
);
console.log(store);