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) => 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 }