Fix file transfer.
We had two functions with the same name.
This commit is contained in:
+2
-2
@@ -2538,7 +2538,7 @@ async function rejectFile(f) {
|
|||||||
* @param {TransferredFile} f
|
* @param {TransferredFile} f
|
||||||
* @param {string} sdp
|
* @param {string} sdp
|
||||||
*/
|
*/
|
||||||
async function sendFile(f, sdp) {
|
async function sendOfferedFile(f, sdp) {
|
||||||
if(f.pc)
|
if(f.pc)
|
||||||
throw new Error('Transfer already in progress');
|
throw new Error('Transfer already in progress');
|
||||||
|
|
||||||
@@ -2805,7 +2805,7 @@ function gotUserMessage(id, dest, username, time, privileged, kind, message) {
|
|||||||
let f = TransferredFile.get(true, id, message.id);
|
let f = TransferredFile.get(true, id, message.id);
|
||||||
if(!f)
|
if(!f)
|
||||||
throw new Error('unexpected getfile');
|
throw new Error('unexpected getfile');
|
||||||
sendFile(f, message.offer);
|
sendOfferedFile(f, message.offer);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'rejectfile': {
|
case 'rejectfile': {
|
||||||
|
|||||||
Reference in New Issue
Block a user