tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

clearRecentlyFoundChats does not clear properly? #2957

Closed vincentneo closed 4 months ago

vincentneo commented 4 months ago

It seems like calling clearRecentlyFoundChats makes no difference. After clearRecentlyFoundChats, I called getRecentlyOpenedChats which returned the same set of chats again.

levlam commented 4 months ago

clearRecentlyFoundChats clears the chats returned by searchRecentlyFoundChats and searchChats with an empty query.

Recently opened chats are used in the macOS app in the fast forward menu and can't be cleared.

vincentneo commented 4 months ago

Thanks @levlam, guess I misunderstood and instead searchRecentlyFoundChats is what I needed.