mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-01 16:06:59 +00:00
macos syntax fix
This commit is contained in:
parent
3a10dd64fc
commit
7419a42100
@ -346,7 +346,7 @@ final class FFMpegMediaFrameSourceContext: NSObject {
|
||||
self.keepDataDisposable.set(postbox.mediaBox.keepResource(id: resourceReference.resource.id).start())
|
||||
}
|
||||
|
||||
if let storeAfterDownload {
|
||||
if let storeAfterDownload = storeAfterDownload {
|
||||
self.autosaveDisposable.set((postbox.mediaBox.resourceData(resourceReference.resource)
|
||||
|> take(1)
|
||||
|> mapToSignal { initialData -> Signal<Bool, NoError> in
|
||||
|
@ -261,7 +261,7 @@ public func enqueueMessagesToMultiplePeers(account: Account, peerIds: [PeerId],
|
||||
replyToMessageId = MessageId(peerId: peerId, namespace: Namespaces.Message.Cloud, id: Int32(clamping: threadIds))
|
||||
}
|
||||
var messages = messages
|
||||
if let replyToMessageId {
|
||||
if let replyToMessageId = replyToMessageId {
|
||||
messages = messages.map { ($0.0, $0.1.withUpdatedReplyToMessageId(replyToMessageId)) }
|
||||
}
|
||||
for id in enqueueMessages(transaction: transaction, account: account, peerId: peerId, messages: messages, disableAutoremove: false, transformGroupingKeysWithPeerId: true) {
|
||||
|
@ -151,7 +151,7 @@ func _internal_updatePeerPhotoInternal(postbox: Postbox, network: Network, state
|
||||
}
|
||||
|
||||
var videoEmojiMarkup: Api.VideoSize?
|
||||
if let fileId, let backgroundColors {
|
||||
if let fileId = fileId, let backgroundColors = backgroundColors {
|
||||
videoEmojiMarkup = .videoSizeEmojiMarkup(emojiId: fileId, backgroundColors: backgroundColors)
|
||||
flags |= (1 << 4)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user