From bcb571584f48e7184b23eaf4bf9920582adceb71 Mon Sep 17 00:00:00 2001 From: Ali <> Date: Sun, 25 Dec 2022 19:57:43 +0400 Subject: [PATCH] Storage management improvements --- .../Data and Storage/StorageUsageExceptionsScreen.swift | 1 - .../Sources/StoragePeerListPanelComponent.swift | 8 +++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/submodules/SettingsUI/Sources/Data and Storage/StorageUsageExceptionsScreen.swift b/submodules/SettingsUI/Sources/Data and Storage/StorageUsageExceptionsScreen.swift index 9f44b03970..3805f782de 100644 --- a/submodules/SettingsUI/Sources/Data and Storage/StorageUsageExceptionsScreen.swift +++ b/submodules/SettingsUI/Sources/Data and Storage/StorageUsageExceptionsScreen.swift @@ -315,7 +315,6 @@ public func storageUsageExceptionsScreen( filter.insert(.onlyGroups) case .privateChats: filter.insert(.onlyPrivateChats) - filter.insert(.excludeSavedMessages) filter.insert(.excludeSecretChats) case .channels: filter.insert(.onlyChannels) diff --git a/submodules/TelegramUI/Components/StorageUsageScreen/Sources/StoragePeerListPanelComponent.swift b/submodules/TelegramUI/Components/StorageUsageScreen/Sources/StoragePeerListPanelComponent.swift index 5ce3197d04..273a130060 100644 --- a/submodules/TelegramUI/Components/StorageUsageScreen/Sources/StoragePeerListPanelComponent.swift +++ b/submodules/TelegramUI/Components/StorageUsageScreen/Sources/StoragePeerListPanelComponent.swift @@ -216,7 +216,13 @@ private final class PeerListItemComponent: Component { transition.setFrame(layer: self.avatarNode.layer, frame: avatarFrame) } if let peer = component.peer { - self.avatarNode.setPeer(context: component.context, theme: component.theme, peer: peer, displayDimensions: CGSize(width: avatarSize, height: avatarSize)) + let clipStyle: AvatarNodeClipStyle + if case let .channel(channel) = peer, channel.flags.contains(.isForum) { + clipStyle = .roundedRect + } else { + clipStyle = .round + } + self.avatarNode.setPeer(context: component.context, theme: component.theme, peer: peer, clipStyle: clipStyle, displayDimensions: CGSize(width: avatarSize, height: avatarSize)) } let labelSize = self.label.update(