2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fixed subscribeToUploader.

This commit is contained in:
23rd
2019-03-26 15:26:34 +03:00
committed by John Preston
parent aaf61dfbad
commit 1ed83cf193
8 changed files with 26 additions and 13 deletions

View File

@@ -528,7 +528,8 @@ FileLoadTask::FileLoadTask(
SendMediaType type,
const FileLoadTo &to,
const TextWithTags &caption,
std::shared_ptr<SendingAlbum> album)
std::shared_ptr<SendingAlbum> album,
std::optional<bool> edit)
: _id(rand_value<uint64>())
, _to(to)
, _album(std::move(album))
@@ -536,7 +537,8 @@ FileLoadTask::FileLoadTask(
, _content(content)
, _information(std::move(information))
, _type(type)
, _caption(caption) {
, _caption(caption)
, _edit(edit) {
}
FileLoadTask::FileLoadTask(
@@ -697,6 +699,8 @@ void FileLoadTask::process() {
_caption,
_album);
_result->edit = _edit.value_or(false);
QString filename, filemime;
qint64 filesize = 0;
QByteArray filedata;