mirror of
https://github.com/jech/galene.git
synced 2024-11-22 08:35:57 +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 {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': {
|
||||
|
|
Loading…
Reference in a new issue