Fix filesharing

master
Håvar Aambø Fosstveit 2020-03-22 18:51:20 +01:00
parent 742da9af45
commit e56ff28b91
1 changed files with 18 additions and 15 deletions

View File

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