mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Fixed display of new chat photo after applying.
This commit is contained in:
parent
322cbc5ed0
commit
48b783f6a0
1 changed files with 2 additions and 3 deletions
|
@ -443,15 +443,14 @@ void Cover::refreshUploadPhotoOverlay() {
|
||||||
Unexpected("Peer type in Info::Profile::Cover.");
|
Unexpected("Peer type in Info::Profile::Cover.");
|
||||||
}(), [=](Ui::UserpicButton::ChosenImage chosen) {
|
}(), [=](Ui::UserpicButton::ChosenImage chosen) {
|
||||||
using ChosenType = Ui::UserpicButton::ChosenType;
|
using ChosenType = Ui::UserpicButton::ChosenType;
|
||||||
auto &image = chosen.image;
|
|
||||||
auto result = Api::PeerPhoto::UserPhoto{
|
auto result = Api::PeerPhoto::UserPhoto{
|
||||||
std::move(image),
|
base::take(chosen.image),
|
||||||
chosen.markup.documentId,
|
chosen.markup.documentId,
|
||||||
chosen.markup.colors,
|
chosen.markup.colors,
|
||||||
};
|
};
|
||||||
switch (chosen.type) {
|
switch (chosen.type) {
|
||||||
case ChosenType::Set:
|
case ChosenType::Set:
|
||||||
_userpic->showCustom(base::duplicate(image));
|
_userpic->showCustom(base::duplicate(result.image));
|
||||||
_peer->session().api().peerPhoto().upload(
|
_peer->session().api().peerPhoto().upload(
|
||||||
_peer,
|
_peer,
|
||||||
std::move(result));
|
std::move(result));
|
||||||
|
|
Loading…
Add table
Reference in a new issue