mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Fixed subscribeToUploader.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user