2
0
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:
23rd
2023-01-31 00:37:34 +03:00
committed by John Preston
parent b7cf32a65f
commit 6bb7263f7d
4 changed files with 29 additions and 6 deletions

View File

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