1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-22 16:45:58 +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 {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': {