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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user