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

Function canSendFile

app/components/peer-avatar.js:111–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109 },
110
111 canSendFile() {
112 const { peer } = this;
113
114 // Can't send files if another file transfer is already in progress
115 return !(
116 peer.get('state') === 'is_preparing_file_transfer' ||
117 peer.get('transfer.file') ||
118 peer.get('transfer.info')
119 );
120 },
121
122 isTransferableBundle(files) {
123 if (files.length === 1 && files[0] instanceof window.File) return true;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected