mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Allow to edit Bio in Settings.
This commit is contained in:
@@ -29,6 +29,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
|
||||
#include "intro/introsignup.h"
|
||||
#include "intro/intropwdcheck.h"
|
||||
#include "mainwidget.h"
|
||||
#include "apiwrap.h"
|
||||
#include "mainwindow.h"
|
||||
#include "messenger.h"
|
||||
#include "application.h"
|
||||
@@ -455,6 +456,9 @@ void Widget::Step::finish(const MTPUser &user, QImage photo) {
|
||||
App::wnd()->setupMain(&user);
|
||||
|
||||
// "this" is already deleted here by creating the main widget.
|
||||
if (auto user = App::self()) {
|
||||
App::api()->requestFullPeer(user);
|
||||
}
|
||||
if (!photo.isNull()) {
|
||||
App::app()->uploadProfilePhoto(photo, AuthSession::CurrentUserId());
|
||||
}
|
||||
|
Reference in New Issue
Block a user