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' ||
|
if(chat._ === 'chatForbidden' ||
|
||||||
chat._ === 'channelForbidden' ||
|
chat._ === 'channelForbidden' ||
|
||||||
// (chat as Chat.chat).pFlags.kicked ||
|
(chat as any).pFlags.kicked ||
|
||||||
(chat.pFlags.left && !(chat as Chat.channel).pFlags.megagroup)) {
|
(chat.pFlags.left && !(chat as Chat.channel).pFlags.megagroup)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -377,7 +377,7 @@ export class AppChatsManager {
|
|||||||
|| chat._ === 'chatForbidden'
|
|| chat._ === 'chatForbidden'
|
||||||
|| chat._ === 'chatEmpty'
|
|| chat._ === 'chatEmpty'
|
||||||
|| (chat as Chat.chat).pFlags.left
|
|| (chat as Chat.chat).pFlags.left
|
||||||
// || (chat as Chat.chat).pFlags.kicked
|
|| (chat as any).pFlags.kicked
|
||||||
|| (chat as Chat.chat).pFlags.deactivated) {
|
|| (chat as Chat.chat).pFlags.deactivated) {
|
||||||
good = false;
|
good = false;
|
||||||
}
|
}
|
||||||
|
@ -764,9 +764,9 @@ export default class DialogsStorage {
|
|||||||
// ! chatForbidden stays for chat where you're kicked
|
// ! chatForbidden stays for chat where you're kicked
|
||||||
if(
|
if(
|
||||||
chat._ === 'channelForbidden'
|
chat._ === 'channelForbidden'
|
||||||
// || chat._ === 'chatForbidden'
|
|| chat._ === 'chatForbidden'
|
||||||
|| (chat as Chat.chat).pFlags.left
|
|| (chat as Chat.chat).pFlags.left
|
||||||
// || (chat as Chat.chat).pFlags.kicked
|
|| (chat as any).pFlags.kicked
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user