Updated group permissions

This commit is contained in:
Peter Iakovlev
2018-12-30 16:26:44 +04:00
parent 8b2176083e
commit 272a262cc7
45 changed files with 4810 additions and 3700 deletions

View File

@@ -99,6 +99,11 @@ 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 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)
}
}
}
} else if includeSearchEntry {
if view.laterId == nil {