mirror of
https://github.com/jech/galene.git
synced 2024-11-12 19:55:59 +01:00
Fix file transfer.
We had two functions with the same name.
This commit is contained in:
parent
797f9f5430
commit
5ecb3a1f93
1 changed files with 2 additions and 2 deletions
|
@ -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': {
|
||||||
|
|
Loading…
Reference in a new issue