Storage management improvements

This commit is contained in:
Ali
2022-12-25 19:57:43 +04:00
parent 05c8b4ca54
commit bcb571584f
2 changed files with 7 additions and 2 deletions

View File

@@ -315,7 +315,6 @@ public func storageUsageExceptionsScreen(
filter.insert(.onlyGroups) filter.insert(.onlyGroups)
case .privateChats: case .privateChats:
filter.insert(.onlyPrivateChats) filter.insert(.onlyPrivateChats)
filter.insert(.excludeSavedMessages)
filter.insert(.excludeSecretChats) filter.insert(.excludeSecretChats)
case .channels: case .channels:
filter.insert(.onlyChannels) filter.insert(.onlyChannels)

View File

@@ -216,7 +216,13 @@ private final class PeerListItemComponent: Component {
transition.setFrame(layer: self.avatarNode.layer, frame: avatarFrame) transition.setFrame(layer: self.avatarNode.layer, frame: avatarFrame)
} }
if let peer = component.peer { 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( let labelSize = self.label.update(