2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Fix removing chats from dialogs.

This commit is contained in:
John Preston
2019-01-22 17:05:06 +04:00
parent ebc2043055
commit bf87de3706
5 changed files with 17 additions and 19 deletions

View File

@@ -103,7 +103,10 @@ public:
return flags() & MTPDchat_ClientFlag::f_forbidden;
}
bool amIn() const {
return !isForbidden() && !haveLeft() && !wasKicked();
return !isForbidden()
&& !isDeactivated()
&& !haveLeft()
&& !wasKicked();
}
bool haveLeft() const {
return flags() & MTPDchat::Flag::f_left;