Commit 5ecb3a1f authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix file transfer.

We had two functions with the same name.
parent 797f9f54
......@@ -2538,7 +2538,7 @@ async function rejectFile(f) {
* @param {TransferredFile} f
* @param {string} sdp
*/
async function sendFile(f, sdp) {
async function sendOfferedFile(f, sdp) {
if(f.pc)
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);
if(!f)
throw new Error('unexpected getfile');
sendFile(f, message.offer);
sendOfferedFile(f, message.offer);
break;
}
case 'rejectfile': {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment