Rollback 'kicked' check

Exclude kicked chats from chatlist
This commit is contained in:
Eduard Kuzmenko 2022-04-16 22:11:55 +03:00
parent 7614da3ca0
commit f6e893f077
2 changed files with 4 additions and 4 deletions

View File

@ -238,7 +238,7 @@ export class AppChatsManager {
if(chat._ === 'chatForbidden' ||
chat._ === 'channelForbidden' ||
// (chat as Chat.chat).pFlags.kicked ||
(chat as any).pFlags.kicked ||
(chat.pFlags.left && !(chat as Chat.channel).pFlags.megagroup)) {
return false;
}
@ -377,7 +377,7 @@ export class AppChatsManager {
|| chat._ === 'chatForbidden'
|| chat._ === 'chatEmpty'
|| (chat as Chat.chat).pFlags.left
// || (chat as Chat.chat).pFlags.kicked
|| (chat as any).pFlags.kicked
|| (chat as Chat.chat).pFlags.deactivated) {
good = false;
}

View File

@ -764,9 +764,9 @@ export default class DialogsStorage {
// ! chatForbidden stays for chat where you're kicked
if(
chat._ === 'channelForbidden'
// || chat._ === 'chatForbidden'
|| chat._ === 'chatForbidden'
|| (chat as Chat.chat).pFlags.left
// || (chat as Chat.chat).pFlags.kicked
|| (chat as any).pFlags.kicked
) {
return;
}