diff --git a/submodules/TelegramCallsUI/Sources/PresentationCallManager.swift b/submodules/TelegramCallsUI/Sources/PresentationCallManager.swift index e5e051a84c..993e94adc0 100644 --- a/submodules/TelegramCallsUI/Sources/PresentationCallManager.swift +++ b/submodules/TelegramCallsUI/Sources/PresentationCallManager.swift @@ -362,7 +362,7 @@ public final class PresentationCallManagerImpl: PresentationCallManager { ) strongSelf.updateCurrentCall(call) })) - } else if let currentCall = self.currentCall, currentCall.peerId == firstState.1.id, currentCall.peerId.id._internalGetInt64Value() < firstState.0.account.peerId.id._internalGetInt64Value() { + } else if !"".isEmpty, let currentCall = self.currentCall, currentCall.peerId == firstState.1.id, currentCall.peerId.id._internalGetInt64Value() < firstState.0.account.peerId.id._internalGetInt64Value() { let _ = currentCall.hangUp().startStandalone() self.currentCallDisposable.set((combineLatest( diff --git a/submodules/TelegramUI/Components/ShareWithPeersScreen/Sources/ShareWithPeersScreen.swift b/submodules/TelegramUI/Components/ShareWithPeersScreen/Sources/ShareWithPeersScreen.swift index c855a0052c..438a20a320 100644 --- a/submodules/TelegramUI/Components/ShareWithPeersScreen/Sources/ShareWithPeersScreen.swift +++ b/submodules/TelegramUI/Components/ShareWithPeersScreen/Sources/ShareWithPeersScreen.swift @@ -1833,7 +1833,8 @@ final class ShareWithPeersScreenComponent: Component { sectionOffset += footerSize.height } else if section.id == 4 && section.itemCount > 0 { var sectionItemOffset: CGFloat = 0.0 - if self.selectedOptions.contains(.pin) { + //TODO:release + if self.selectedOptions.contains(.pin) && !"".isEmpty { let itemFrame = CGRect(origin: CGPoint(x: itemLayout.sideInset, y: sectionOffset + section.insets.top + sectionItemOffset), size: CGSize(width: itemLayout.containerSize.width, height: section.itemHeight)) if !visibleBounds.intersects(itemFrame) { continue @@ -2728,15 +2729,18 @@ final class ShareWithPeersScreenComponent: Component { if hasCover { itemCount += 1 } - if self.selectedOptions.contains(.pin) { + //TODO:release + /*if self.selectedOptions.contains(.pin) { itemCount += 1 + }*/ + if itemCount != 0 { + sections.append(ItemLayout.Section( + id: 4, + insets: UIEdgeInsets(top: 28.0, left: 0.0, bottom: 0.0, right: 0.0), + itemHeight: optionItemSize.height, + itemCount: itemCount + )) } - sections.append(ItemLayout.Section( - id: 4, - insets: UIEdgeInsets(top: 28.0, left: 0.0, bottom: 0.0, right: 0.0), - itemHeight: optionItemSize.height, - itemCount: 1 - )) } } else { sections.append(ItemLayout.Section(