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