Fix filesharing
parent
742da9af45
commit
e56ff28b91
|
|
@ -694,23 +694,26 @@ export default class RoomClient
|
||||||
})
|
})
|
||||||
}));
|
}));
|
||||||
|
|
||||||
this._webTorrent.seed(files, (torrent) =>
|
this._webTorrent.seed(
|
||||||
{
|
files,
|
||||||
store.dispatch(requestActions.notify(
|
{ announceList: [['wss://tracker.lab.vvc.niif.hu:443']] },
|
||||||
{
|
(torrent) =>
|
||||||
text : intl.formatMessage({
|
{
|
||||||
id : 'filesharing.successfulFileShare',
|
store.dispatch(requestActions.notify(
|
||||||
defaultMessage : 'File successfully shared'
|
{
|
||||||
})
|
text : intl.formatMessage({
|
||||||
}));
|
id : 'filesharing.successfulFileShare',
|
||||||
|
defaultMessage : 'File successfully shared'
|
||||||
|
})
|
||||||
|
}));
|
||||||
|
|
||||||
store.dispatch(fileActions.addFile(
|
store.dispatch(fileActions.addFile(
|
||||||
this._peerId,
|
this._peerId,
|
||||||
torrent.magnetURI
|
torrent.magnetURI
|
||||||
));
|
));
|
||||||
|
|
||||||
this._sendFile(torrent.magnetURI);
|
this._sendFile(torrent.magnetURI);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// { file, name, picture }
|
// { file, name, picture }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue