mirror of
https://github.com/TakeV-Lambda/dino.git
synced 2024-11-25 00:14:40 +00:00
set a generic MIME type for encrypted file (#1213)
This commit is contained in:
parent
f0ed11ec49
commit
c5ed719b66
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ public class OmemoFileEncryptor : Dino.FileEncryptor, Object {
|
|||
omemo_http_file_meta.iv = iv;
|
||||
omemo_http_file_meta.key = key;
|
||||
omemo_http_file_meta.size = file_transfer.size + 16;
|
||||
omemo_http_file_meta.mime_type = "omemo";
|
||||
omemo_http_file_meta.mime_type = "application/octet-stream";
|
||||
file_transfer.input_stream = new ConverterInputStream(file_transfer.input_stream, new SymmetricCipherEncrypter((owned) cipher, 16));
|
||||
} catch (Crypto.Error error) {
|
||||
throw new FileSendError.ENCRYPTION_FAILED("OMEMO file encryption error: %s".printf(error.message));
|
||||
|
|
Loading…
Reference in a new issue