This commit is contained in:
Peter Iakovlev 2018-12-30 23:41:30 +04:00
parent 65c57fad4a
commit c7ed688152

View File

@ -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)
}