mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Merged with master.
This commit is contained in:
@@ -2973,9 +2973,7 @@ void MainWidget::feedMessageIds(const MTPVector<MTPUpdate> &updates) {
|
||||
}
|
||||
|
||||
bool MainWidget::updateFail(const RPCError &e) {
|
||||
if (MTP::authedId()) {
|
||||
App::logOut();
|
||||
}
|
||||
App::logOutDelayed();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -3722,7 +3720,7 @@ bool MainWidget::inviteImportFail(const RPCError &error) {
|
||||
void MainWidget::startFull(const MTPVector<MTPUser> &users) {
|
||||
const QVector<MTPUser> &v(users.c_vector().v);
|
||||
if (v.isEmpty() || v[0].type() != mtpc_user || !v[0].c_user().is_self()) { // wtf?..
|
||||
return App::logOut();
|
||||
return App::logOutDelayed();
|
||||
}
|
||||
start(v[0]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user