From 6931ac34a10c1916d07bcb48bcb73504099b8089 Mon Sep 17 00:00:00 2001 From: overtake Date: Thu, 8 Apr 2021 18:16:55 +0400 Subject: [PATCH] fix typo --- submodules/TelegramCore/Sources/GroupCalls.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/submodules/TelegramCore/Sources/GroupCalls.swift b/submodules/TelegramCore/Sources/GroupCalls.swift index a0c1c924ee..5bb8c2d2d1 100644 --- a/submodules/TelegramCore/Sources/GroupCalls.swift +++ b/submodules/TelegramCore/Sources/GroupCalls.swift @@ -112,9 +112,9 @@ public func getCurrentGroupCall(account: Account, callId: Int64, accessHash: Int if let peerId = peerId { transaction.updatePeerCachedData(peerIds: [peerId], update: { _, current in if let cachedData = current as? CachedChannelData { - return cachedData.withUpdatedActiveCall(CachedChannelData.ActiveCall.init(id: info.id, accessHash: info.accessHash, title: info.title, scheduleTimestamp: info.scheduleTimestamp, subscribed: cachedData.activeCall?.subscribed ?? false)) + return cachedData.withUpdatedActiveCall(CachedChannelData.ActiveCall.init(id: info.id, accessHash: info.accessHash, title: info.title, scheduleTimestamp: info.scheduleTimestamp, subscribedToScheduled: cachedData.activeCall?.subscribedToScheduled ?? false)) } else if let cachedData = current as? CachedGroupData { - return cachedData.withUpdatedActiveCall(CachedChannelData.ActiveCall(id: info.id, accessHash: info.accessHash, title: info.title, scheduleTimestamp: info.scheduleTimestamp, subscribed: cachedData.activeCall?.subscribed ?? false)) + return cachedData.withUpdatedActiveCall(CachedChannelData.ActiveCall(id: info.id, accessHash: info.accessHash, title: info.title, scheduleTimestamp: info.scheduleTimestamp, subscribedToScheduled: cachedData.activeCall?.subscribedToScheduled ?? false)) } else { return current }