()
| 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; |
nothing calls this directly
no outgoing calls
no test coverage detected