mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Moved MTP::authedId() to AuthSession::Current().
This commit is contained in:
@@ -44,6 +44,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
|
||||
#include "styles/style_intro.h"
|
||||
#include "styles/style_window.h"
|
||||
#include "window/themes/window_theme.h"
|
||||
#include "auth_session.h"
|
||||
|
||||
namespace Intro {
|
||||
|
||||
@@ -428,7 +429,7 @@ void Widget::Step::finish(const MTPUser &user, QImage photo) {
|
||||
|
||||
// "this" is already deleted here by creating the main widget.
|
||||
if (!photo.isNull()) {
|
||||
App::app()->uploadProfilePhoto(photo, MTP::authedId());
|
||||
App::app()->uploadProfilePhoto(photo, AuthSession::CurrentUserId());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user