mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various fixes
This commit is contained in:
@@ -1096,11 +1096,7 @@ private func groupInfoEntries(account: Account, presentationData: PresentationDa
|
||||
}
|
||||
} else if let channel = view.peers[view.peerId] as? TelegramChannel {
|
||||
if case .member = channel.participationStatus, let cachedChannelData = view.cachedData as? CachedChannelData, let memberCount = cachedChannelData.participantsSummary.memberCount, memberCount <= 200 {
|
||||
if channel.flags.contains(.isCreator) {
|
||||
entries.append(.leave(presentationData.theme, presentationData.strings.GroupInfo_DeleteAndExit))
|
||||
} else {
|
||||
entries.append(.leave(presentationData.theme, presentationData.strings.Group_LeaveGroup))
|
||||
}
|
||||
entries.append(.leave(presentationData.theme, presentationData.strings.Group_LeaveGroup))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user