persist 'cancelled' annotation on failed file transfer

This commit is contained in:
Daniel Gultsch 2024-04-15 18:15:01 +02:00
parent 3a489741e7
commit 97eb7d4e48
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2

View file

@ -1245,7 +1245,10 @@ public class JingleFileTransferConnection extends AbstractJingleConnection
// IOException and turn it into a connectivity error
if (isInitiator() && reason == Reason.CANCEL) {
this.message.setErrorMessage(Message.ERROR_MESSAGE_CANCELLED);
// message hooks have already run so we need to mark to persist the 'cancelled'
// status
xmppConnectionService.markMessage(
message, Message.STATUS_SEND_FAILED, Message.ERROR_MESSAGE_CANCELLED);
}
terminateTransport();
final JinglePacket jinglePacket =