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

Moved api peer photo processing to separated file.

Removed MainWidget::deletePhotoLayer.
This commit is contained in:
23rd
2021-10-20 19:54:22 +03:00
parent 36d6682122
commit 159beb138a
15 changed files with 294 additions and 213 deletions

View File

@@ -7,8 +7,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#include "info/profile/info_profile_cover.h"
#include <rpl/never.h>
#include <rpl/combine.h>
#include "data/data_photo.h"
#include "data/data_peer_values.h"
#include "data/data_channel.h"
@@ -29,6 +27,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "core/application.h"
#include "main/main_session.h"
#include "apiwrap.h"
#include "api/api_peer_photo.h"
#include "styles/style_boxes.h"
#include "styles/style_info.h"
@@ -273,7 +272,7 @@ Cover::Cover(
_userpic->uploadPhotoRequests(
) | rpl::start_with_next([=] {
_peer->session().api().uploadPeerPhoto(
_peer->session().api().peerPhoto().upload(
_peer,
_userpic->takeResultImage());
}, _userpic->lifetime());