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

Fix uploading new group / account photo.

This commit is contained in:
John Preston
2022-12-29 12:16:13 +04:00
parent cad6faa790
commit 7e98e9ecf2
5 changed files with 11 additions and 6 deletions

View File

@@ -207,13 +207,13 @@ void UserpicButton::prepare() {
prepareUserpicPixmap();
}
setClickHandlerByRole();
}
if (_role == Role::ChangePhoto) {
chosenImages(
) | rpl::start_with_next([=](ChosenImage &&chosen) {
showCustom(std::move(chosen.image));
}, lifetime());
}
void UserpicButton::showCustomOnChosen() {
chosenImages(
) | rpl::start_with_next([=](ChosenImage &&chosen) {
showCustom(std::move(chosen.image));
}, lifetime());
}
void UserpicButton::requestSuggestAvailability() {

View File

@@ -100,6 +100,7 @@ public:
void showCustom(QImage &&image);
void showSource(Source source);
void showCustomOnChosen();
void overrideHasPersonalPhoto(bool has);
[[nodiscard]] rpl::producer<> resetPersonalRequests() const;