2
0
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:
23rd
2021-03-14 12:46:17 +03:00
parent bc316a2536
commit e05343d721
15 changed files with 113 additions and 28 deletions

View File

@@ -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;