MCPcopy Create free account
hub / github.com/ShareDropio/sharedrop / _onPeerP2PFileSent

Function _onPeerP2PFileSent

app/controllers/index.js:236–247  ·  view source on GitHub ↗
(event, data)

Source from the content-addressed store, hash-verified

234 },
235
236 _onPeerP2PFileSent(event, data) {
237 console.log('Peer:\t Sent file', data);
238
239 const { connection } = data;
240 const peers = this.model;
241 const peer = peers.findBy('peer.id', connection.peer);
242
243 peer.set('transfer.sendingProgress', 0);
244 peer.set('transfer.file', null);
245 peer.set('state', 'idle');
246 peer.trigger('didSendFile');
247 },
248});

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected