always show download button when link is encrypted
dont check for known mime type
This commit is contained in:
parent
549be9bb3d
commit
e542dd3923
|
@ -631,11 +631,7 @@ public class Message extends AbstractEntity {
|
|||
boolean encrypted = ref != null && ref.matches("([A-Fa-f0-9]{2}){48}");
|
||||
|
||||
if (encrypted) {
|
||||
if (MimeUtils.guessMimeTypeFromExtension(extension) != null) {
|
||||
return Decision.MUST;
|
||||
} else {
|
||||
return Decision.NEVER;
|
||||
}
|
||||
} else if (Transferable.VALID_IMAGE_EXTENSIONS.contains(extension)
|
||||
|| Transferable.WELL_KNOWN_EXTENSIONS.contains(extension)) {
|
||||
return Decision.SHOULD;
|
||||
|
|
Loading…
Reference in a new issue