set a generic MIME type for encrypted file (#1213)

This commit is contained in:
Nkwuda Sunday Cletus 2022-03-23 14:42:43 -05:00 committed by GitHub
parent f0ed11ec49
commit c5ed719b66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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));