Fix build

This commit is contained in:
Ilya Laktyushin 2025-01-25 02:52:52 +04:00
parent 5761761ee5
commit 46aa2bdda2

View File

@ -2566,7 +2566,7 @@ public class GiftViewScreen: ViewControllerComponentContainer {
let giftsPeerId: EnginePeer.Id?
let text: String
if case let .peer(peerId, _) = arguments.reference, peerId == Namespaces.Peer.CloudChannel {
if case let .peer(peerId, _) = arguments.reference, peerId.namespace == Namespaces.Peer.CloudChannel {
giftsPeerId = peerId
text = added ? presentationData.strings.Gift_Displayed_ChannelText : presentationData.strings.Gift_Hidden_ChannelText
} else {