Browse Source

Rollback 'kicked' check

Exclude kicked chats from chatlist
master
Eduard Kuzmenko 3 years ago
parent
commit
f6e893f077
  1. 4
      src/lib/appManagers/appChatsManager.ts
  2. 4
      src/lib/storages/dialogs.ts

4
src/lib/appManagers/appChatsManager.ts

@ -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;
} }

4
src/lib/storages/dialogs.ts

@ -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…
Cancel
Save