mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-23 05:54:14 +00:00
Merge branch 'beta'
# Conflicts: # submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryItemSetContainerComponent.swift # versions.json
This commit is contained in:
commit
e23a02eb44
@ -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(
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user