plainMessage = encryptionManager.decrypt(msg);
} else {
plainMessage = msg;
}
if (plainMessage.startsWith(FILE_REQUEST)) {
<BUG>sendFile(ctx, attachmentPath + File.separator + plainMessage.substring(FILE_REQUEST.length()));
</BUG>
} else if (plainMessage.startsWith(FILE_STARTS)) {
openOutputStream(plainMessage.substring(FILE_STARTS.length()));
} else if (plainMessage.startsWith(FILE_CHUNK)) {

plainMessage = encryptionManager.decrypt(msg);
} else {
plainMessage = msg;
}
if (plainMessage.startsWith(FILE_REQUEST)) {
sendFile(ctx, attachmentPath + FileUtils.separator + plainMessage.substring(FILE_REQUEST.length()));
} else if (plainMessage.startsWith(FILE_STARTS)) {
openOutputStream(plainMessage.substring(FILE_STARTS.length()));
} else if (plainMessage.startsWith(FILE_CHUNK)) {
