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:
@@ -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([=] {
|
||||
|
Reference in New Issue
Block a user