2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +00:00

Better difference between deleted and active accounts

For deleted users:
* Status changed to "account inaccessible"
* Ghost icon in dialogs list
* Status "account inacessible" shown even in block list
This commit is contained in:
RadRussianRus
2019-10-19 20:04:23 +03:00
parent 2351d710b9
commit ccc0054227
10 changed files with 23 additions and 4 deletions

View File

@@ -516,7 +516,13 @@ const style::icon *ChatTypeIcon(
? st::dialogsChannelIconOver
: st::dialogsChannelIcon));
} else if (const auto user = peer->asUser()) {
if (ShowUserBotIcon(user)) {
if (user->isInaccessible()) {
return &(active
? st::dialogsDeletedIconActive
: (selected
? st::dialogsDeletedIconOver
: st::dialogsDeletedIcon));
} else if (ShowUserBotIcon(user)) {
return &(active
? st::dialogsBotIconActive
: (selected