Rollback 'kicked' check
Exclude kicked chats from chatlist
This commit is contained in:
parent
7614da3ca0
commit
f6e893f077
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user