2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Added api support to upload emoji markup of userpic instead of image.

This commit is contained in:
23rd
2023-01-30 23:02:02 +03:00
committed by John Preston
parent d6bf5513ff
commit 9940ee21d3
12 changed files with 127 additions and 45 deletions

View File

@@ -144,7 +144,9 @@ Cover::Cover(
Ui::UserpicButton::ChosenImage chosen) {
auto &image = chosen.image;
_userpic->showCustom(base::duplicate(image));
_user->session().api().peerPhoto().upload(_user, std::move(image));
_user->session().api().peerPhoto().upload(
_user,
{ std::move(image) });
});
_badge.setPremiumClickCallback([=] {