mark message as failed after canceling ft w/o transferable. fixes #2513

This commit is contained in:
Daniel Gultsch 2017-06-19 13:23:20 +02:00
parent 24768d051d
commit 95405fde5f

View File

@ -805,6 +805,8 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
Transferable transferable = message.getTransferable();
if (transferable != null) {
transferable.cancel();
} else if (message.getStatus() != Message.STATUS_RECEIVED) {
activity.xmppConnectionService.markMessage(message,Message.STATUS_SEND_FAILED);
}
}