mirror of
https://github.com/TakeV-Lambda/dino.git
synced 2024-11-23 07:24:35 +00:00
Fix wrong size being reported for OMEMO encrypted HTTP file transfers
Fixes #630
This commit is contained in:
parent
e330e60f83
commit
394862dbd3
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,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;
|
||||
omemo_http_file_meta.size = file_transfer.size + 16;
|
||||
omemo_http_file_meta.mime_type = "omemo";
|
||||
file_transfer.input_stream = new ConverterInputStream(file_transfer.input_stream, new SymmetricCipherEncrypter((owned) cipher));
|
||||
} catch (Crypto.Error error) {
|
||||
|
|
Loading…
Reference in a new issue