Fix file dialog opening when sending chat messages
parent
a90c287989
commit
c908fa8855
|
|
@ -59,7 +59,7 @@ const shareFiles = async (files) =>
|
||||||
|
|
||||||
store.dispatch(requestActions.notify({
|
store.dispatch(requestActions.notify({
|
||||||
text : 'Torrent successfully created'
|
text : 'Torrent successfully created'
|
||||||
}))
|
}));
|
||||||
|
|
||||||
notifyPeers({
|
notifyPeers({
|
||||||
magnet : newTorrent.magnetURI
|
magnet : newTorrent.magnetURI
|
||||||
|
|
@ -106,7 +106,12 @@ class FileSharing extends Component
|
||||||
multiple
|
multiple
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<button onClick={this.handleClick}>share file</button>
|
<button
|
||||||
|
type='button'
|
||||||
|
onClick={this.handleClick}
|
||||||
|
>
|
||||||
|
share file
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ const chatmessages = (state = [], action) =>
|
||||||
|
|
||||||
case 'ADD_NEW_USER_FILE':
|
case 'ADD_NEW_USER_FILE':
|
||||||
{
|
{
|
||||||
const { file } = action.payload;
|
const { file } = action.payload;
|
||||||
|
|
||||||
const message = createNewFile(file, 'client', 'Me', undefined);
|
const message = createNewFile(file, 'client', 'Me', undefined);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,5 +44,3 @@ export const store = createStore(
|
||||||
undefined,
|
undefined,
|
||||||
enhancer
|
enhancer
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log(store);
|
|
||||||
Loading…
Reference in New Issue