mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Voice Chat Improvements
This commit is contained in:
@@ -417,26 +417,6 @@ func groupPermissionDependencies(_ right: TelegramChatBannedRightsFlags) -> Tele
|
||||
}
|
||||
}
|
||||
|
||||
private func completeRights(_ flags: TelegramChatBannedRightsFlags) -> TelegramChatBannedRightsFlags {
|
||||
var result = flags
|
||||
result.remove(.banReadMessages)
|
||||
if result.contains(.banSendGifs) {
|
||||
result.insert(.banSendStickers)
|
||||
result.insert(.banSendGifs)
|
||||
result.insert(.banSendGames)
|
||||
} else {
|
||||
result.remove(.banSendStickers)
|
||||
result.remove(.banSendGifs)
|
||||
result.remove(.banSendGames)
|
||||
}
|
||||
if result.contains(.banEmbedLinks) {
|
||||
result.insert(.banSendInline)
|
||||
} else {
|
||||
result.remove(.banSendInline)
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
private func channelPermissionsControllerEntries(context: AccountContext, presentationData: PresentationData, view: PeerView, state: ChannelPermissionsControllerState, participants: [RenderedChannelParticipant]?) -> [ChannelPermissionsEntry] {
|
||||
var entries: [ChannelPermissionsEntry] = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user