Detects remote file transfer reject.

cusax-fix
Damian Minkov 14 years ago
parent 431ae8a93f
commit c23c49c067

@ -195,10 +195,9 @@ service.gui.FILE_RECEIVE_COMPLETED=File has been received from {0}.
service.gui.FILE_TRANSFER_CANCELED=File transfer has been canceled.
service.gui.FILE_SEND_FAILED=Failed to send file: {0}.
service.gui.FILE_TOO_BIG=File size exceeds the maximum allowed for this protocol: {0}.
service.gui.FILE_SEND_REFUSED={0} has refused this file.
service.gui.FILE_SEND_REFUSED={0} has rejected this file.
service.gui.FILE_TRANSFER_REFUSED=File transfer has been rejected.
service.gui.FILE_TRANSFER_NOT_SUPPORTED=The contact you have selected doesn't support file transfers.
service.gui.FILE_RECEIVE_REFUSED=You have refused the file from {0}.
service.gui.FILE_TRANSFER_PREPARING=Preparing file transfer with {0}. Please wait...
service.gui.FILE_TRANSFER_REQUEST_RECIEVED={0} is sharing a file with you.
service.gui.FILE_DOES_NOT_EXIST=The specified file could not be found. It was either deleted or moved.

@ -622,6 +622,16 @@ public void run()
logger.error("An exception occured while transfering file: ",
jabberTransfer.getException());
if(jabberTransfer.getException() instanceof XMPPException)
{
XMPPError error =
((XMPPException)jabberTransfer.getException())
.getXMPPError();
if(error.getCode() == 406
|| error.getCode() == 403)
status = FileTransferStatusChangeEvent.REFUSED;
}
statusReason = jabberTransfer.getException().getMessage();
}

Loading…
Cancel
Save