mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Provided result of emoji userpic builder to api.
This commit is contained in:
@@ -256,7 +256,13 @@ void SetupPhoto(
|
||||
auto &image = chosen.image;
|
||||
UpdatePhotoLocally(self, image);
|
||||
photo->showCustom(base::duplicate(image));
|
||||
self->session().api().peerPhoto().upload(self, { std::move(image) });
|
||||
self->session().api().peerPhoto().upload(
|
||||
self,
|
||||
{
|
||||
std::move(image),
|
||||
chosen.markup.documentId,
|
||||
chosen.markup.colors,
|
||||
});
|
||||
}, upload->lifetime());
|
||||
|
||||
const auto name = Ui::CreateChild<Ui::FlatLabel>(
|
||||
|
Reference in New Issue
Block a user