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:
@@ -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() {
|
||||
|
@@ -100,6 +100,7 @@ public:
|
||||
|
||||
void showCustom(QImage &&image);
|
||||
void showSource(Source source);
|
||||
void showCustomOnChosen();
|
||||
|
||||
void overrideHasPersonalPhoto(bool has);
|
||||
[[nodiscard]] rpl::producer<> resetPersonalRequests() const;
|
||||
|
Reference in New Issue
Block a user