2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

cloud password support added, sessions list added, some boxes unifications

This commit is contained in:
John Preston
2015-04-02 13:33:19 +03:00
parent 7814654d38
commit 868d5f60f3
86 changed files with 5303 additions and 5270 deletions

View File

@@ -309,7 +309,7 @@ namespace App {
const MTPuser &user(*i);
data = 0;
bool wasContact = false;
const MTPUserStatus *status = 0;
const MTPUserStatus *status = 0, emptyStatus = MTP_userStatusEmpty();
switch (user.type()) {
case mtpc_userEmpty: {
@@ -323,6 +323,7 @@ namespace App {
data->setPhoto(MTP_userProfilePhotoEmpty());
data->access = 0;
wasContact = (data->contact > 0);
status = &emptyStatus;
data->contact = -1;
} break;
case mtpc_userDeleted: {
@@ -336,6 +337,7 @@ namespace App {
data->setPhoto(MTP_userProfilePhotoEmpty());
data->access = 0;
wasContact = (data->contact > 0);
status = &emptyStatus;
data->contact = -1;
} break;
case mtpc_userSelf: {
@@ -350,7 +352,6 @@ namespace App {
data->setPhone(qs(d.vphone));
data->access = 0;
wasContact = (data->contact > 0);
data->contact = -1;
status = &d.vstatus;
if (::self != data) {