mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-07 14:53:35 +00:00
Fix typo
This commit is contained in:
parent
65c57fad4a
commit
c7ed688152
@ -99,7 +99,7 @@ func chatHistoryEntriesForView(location: ChatLocation, view: MessageHistoryView,
|
||||
if let cachedPeerData = cachedPeerData as? CachedUserData, let botInfo = cachedPeerData.botInfo, !botInfo.description.isEmpty {
|
||||
entries.insert(.ChatInfoEntry(botInfo.description, presentationData), at: 0)
|
||||
}
|
||||
if entries.count == 1, case let .MessageEntry(entry) = view.entries[0] {
|
||||
if view.entries.count == 1, case let .MessageEntry(entry) = view.entries[0] {
|
||||
if let peer = entry.0.peers[entry.0.id.peerId] as? TelegramGroup, case .creator = peer.role {
|
||||
entries.remove(at: 0)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user