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

Put isForum in ChatTypeSupergroup chat #2457

Closed Fra078 closed 1 year ago

Fra078 commented 1 year ago

It would be useful to check if a chat is a forum directly without request to a cache with supergroup IDs to improve performance when loading lists

levlam commented 1 year ago

is_forum can be changed any time, so it isn't part of the chat's type. It can be added only with the updateChatType update, which sounds a bit strange.

While it is true that this looks like the only reason to fetch the supergroup object from cache while showing chat list, I don't think that the change will result in any reasonable performance improvements.

Fredmattwg commented 1 year ago

Hi