1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-14 04:35:57 +01:00

Fix file transfer.

We had two functions with the same name.
This commit is contained in:
Juliusz Chroboczek 2022-02-21 16:53:22 +01:00
parent 797f9f5430
commit 5ecb3a1f93

View file

@ -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': {