mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Remove App::app(), App::uploader(), App::api().
Also use Auth() instead of AuthSession::Current*().
This commit is contained in:
@@ -457,10 +457,10 @@ void Widget::Step::finish(const MTPUser &user, QImage photo) {
|
||||
|
||||
// "this" is already deleted here by creating the main widget.
|
||||
if (auto user = App::self()) {
|
||||
App::api()->requestFullPeer(user);
|
||||
Auth().api().requestFullPeer(user);
|
||||
}
|
||||
if (!photo.isNull()) {
|
||||
App::app()->uploadProfilePhoto(photo, AuthSession::CurrentUserId());
|
||||
Messenger::Instance().uploadProfilePhoto(photo, Auth().userId());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user