mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Glass
This commit is contained in:
parent
3773777141
commit
2db08cde89
167 changed files with 4322 additions and 3473 deletions
|
|
@ -318,7 +318,7 @@ func chatHistoryEntriesForView(
|
|||
}
|
||||
|
||||
var addBotForumHeader = false
|
||||
if location.threadId == nil, let user = chatPeer as? TelegramUser, user.isForum, !entries.isEmpty, !view.holeEarlier, !view.isLoading {
|
||||
if location.threadId == nil, let user = chatPeer as? TelegramUser, let botInfo = user.botInfo, botInfo.flags.contains(.hasForum), botInfo.flags.contains(.forumManagedByUser), !entries.isEmpty, !view.holeEarlier, !view.isLoading {
|
||||
addBotForumHeader = true
|
||||
outer: for i in (0 ..< entries.count).reversed() {
|
||||
switch entries[i] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue