Skip to content

Some chats are ignored #3673

Description

@Danstiv

Hello!
Latest tdlib ignores some dialogs.

Steps to reproduce

  1. Login to account with a lot of chats, in my case it is 331.
  2. Call loadChats until 404 is returned.
  3. Call getChats and check total_count.

Actual behavior

In my case 284 chats are returned, but actually i have more than 300 chats in main list.

Expected behavior

All chats must be returned by getChats after calling loadChats multiple times and receiving 404.

Other context

I used pyrogram library to retrieve information about my dialogs
First request: raw.functions.messages.GetDialogs( offset_date=0, offset_id=0, offset_peer=raw.types.InputPeerEmpty(), limit=1, hash=0)
And the same request but with folder_id 1 to get information about chats in archive: raw.functions.messages.GetDialogs( offset_date=0, offset_id=0, offset_peer=raw.types.InputPeerEmpty(), limit=1, hash=0, folder_id=1)
In response to first request object with count=391 was returned, in response to second request - count=62.
So actually i have 391 - 62 = 329 dialogs.
Also in tdlib logs i found the following event: [ 3][t 4][1781889139.826225996][MessagesManager.cpp:26427][#1][!Td] Send updateUnreadChatCount in Main chat list to 284/331+1/2/2/0/0 from get chat list and chat 0
Don't know why 331 instead of 329, but somehow tdlib knows about other chats, but does not return some of them.
Also requesting dialogs from folder 0 using pyrogram returns count=329, so i realy have at least 329 dialogs in my main list.
And finally, clearing app data and reloggining using Unigram also shows problem described above, only 284 chats are loaded to the ui.
I haven't found a way to get these chats in tdlib other than to find them using searchChatsOnServer.
These chats (at least 1 of them) come as updateNewChat once after starting with an empty database, but it has no position; upon restarts, this chat does not come as update at all.
UPD: unigram uses tdlib 1.8.64 at time of testing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions