mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 00:02:06 +01:00
SMACK-346 Return correct error code on file transfer refusal
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/branches/smack_3_2_0@12860 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
55f4eb68be
commit
197548b548
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ public class FileTransferManager {
|
||||||
IQ rejection = FileTransferNegotiator.createIQ(
|
IQ rejection = FileTransferNegotiator.createIQ(
|
||||||
initiation.getPacketID(), initiation.getFrom(), initiation
|
initiation.getPacketID(), initiation.getFrom(), initiation
|
||||||
.getTo(), IQ.Type.ERROR);
|
.getTo(), IQ.Type.ERROR);
|
||||||
rejection.setError(new XMPPError(XMPPError.Condition.forbidden));
|
rejection.setError(new XMPPError(XMPPError.Condition.no_acceptable));
|
||||||
connection.sendPacket(rejection);
|
connection.sendPacket(rejection);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue