From e4fa2fe29bbb401143cfb623d1387d1caf4a7686 Mon Sep 17 00:00:00 2001 From: Mike Renoir <> Date: Fri, 27 Jan 2023 17:21:49 +0400 Subject: [PATCH] macos syntax --- .../Sources/TelegramEngine/Peers/PeerPhotoUpdater.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/submodules/TelegramCore/Sources/TelegramEngine/Peers/PeerPhotoUpdater.swift b/submodules/TelegramCore/Sources/TelegramEngine/Peers/PeerPhotoUpdater.swift index d32bb15f09..fa52c750b2 100644 --- a/submodules/TelegramCore/Sources/TelegramEngine/Peers/PeerPhotoUpdater.swift +++ b/submodules/TelegramCore/Sources/TelegramEngine/Peers/PeerPhotoUpdater.swift @@ -156,7 +156,7 @@ func _internal_updatePeerPhotoInternal(postbox: Postbox, network: Network, state } var videoEmojiMarkup: Api.VideoSize? - if let markup { + if let markup = markup{ switch markup { case let .emoji(fileId, backgroundColors): videoEmojiMarkup = .videoSizeEmojiMarkup(emojiId: fileId, backgroundColors: backgroundColors) @@ -288,7 +288,7 @@ func _internal_updatePeerPhotoInternal(postbox: Postbox, network: Network, state } var videoEmojiMarkup: Api.VideoSize? - if let markup { + if let markup = markup { switch markup { case let .emoji(fileId, backgroundColors): videoEmojiMarkup = .videoSizeEmojiMarkup(emojiId: fileId, backgroundColors: backgroundColors)