Fix name and expected size of sent files in secret chats.

GitOrigin-RevId: ec2bc60a91ec5f1c7bfc6481a852526a36984962
This commit is contained in:
levlam 2019-09-02 04:40:02 +03:00
parent 926dd7f8f4
commit 7ca14d0851

View File

@ -9476,7 +9476,7 @@ void MessagesManager::on_send_secret_message_success(int64 random_id, MessageId
new_file_id = td_->file_manager_->register_remote(
FullRemoteFileLocation(FileType::Encrypted, file->id_, file->access_hash_, DcId::internal(file->dc_id_), ""),
FileLocationSource::FromServer, owner_dialog_id, 0, 0, "");
FileLocationSource::FromServer, owner_dialog_id, 0, file->size_, to_string(static_cast<uint64>(file->id_)));
}
}