2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Added ability to set profile photo from camera.

This commit is contained in:
23rd
2022-03-14 00:52:33 +03:00
parent 3b9ac19482
commit 3cb595c3c9
8 changed files with 297 additions and 189 deletions

View File

@@ -66,7 +66,7 @@ void SetupPhoto(
auto callback = [=](QImage &&image) {
self->session().api().peerPhoto().upload(self, std::move(image));
};
Editor::PrepareProfilePhoto(
Editor::PrepareProfilePhotoFromFile(
upload,
&controller->window(),
std::move(callback));