mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Added sending info of stickered photos.
This commit is contained in:
@@ -15,6 +15,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "core/mime_type.h"
|
||||
#include "base/unixtime.h"
|
||||
#include "base/qt_adapters.h"
|
||||
#include "editor/scene.h" // Editor::Scene::attachedStickers
|
||||
#include "media/audio/media_audio.h"
|
||||
#include "media/clip/media_clip_reader.h"
|
||||
#include "mtproto/facade.h"
|
||||
@@ -952,6 +953,16 @@ void FileLoadTask::process(Args &&args) {
|
||||
_type = SendMediaType::File;
|
||||
}
|
||||
|
||||
if (_information) {
|
||||
if (auto image = std::get_if<Ui::PreparedFileInformation::Image>(
|
||||
&_information->media)) {
|
||||
if (image->modifications.paint) {
|
||||
_result->attachedStickers =
|
||||
image->modifications.paint->attachedStickers();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_result->type = _type;
|
||||
_result->filepath = _filepath;
|
||||
_result->content = _content;
|
||||
|
Reference in New Issue
Block a user