Fix 10.15.1

This commit is contained in:
Kylmakalle 2024-08-06 21:23:45 +03:00
parent 2ddfd501a5
commit b027b08719
3 changed files with 7 additions and 7 deletions

View File

@ -211,7 +211,7 @@ extension ChatControllerImpl {
var navigationSubject: ChatControllerSubject? = nil
for messageId in messageIds {
if let messageId = messageId {
navigationSubject = .message(id: .id(messageId), highlight: ChatControllerSubject.MessageHighlight(quote: nil), timecode: nil)
navigationSubject = .message(id: .id(messageId), highlight: ChatControllerSubject.MessageHighlight(quote: nil), timecode: nil, setupReply: false)
break
}
}

View File

@ -964,7 +964,7 @@ public func legacyAssetPickerEnqueueMessages(context: AccountContext, account: A
}
// MARK: Swiftgram
if asTelescope {
fileAttributes = [.FileName(fileName: "video.mp4"), .Video(duration: finalDuration, size: PixelDimensions(finalDimensions), flags: [.instantRoundVideo], preloadSize: nil)]
fileAttributes = [.FileName(fileName: "video.mp4"), .Video(duration: finalDuration, size: PixelDimensions(finalDimensions), flags: [.instantRoundVideo], preloadSize: nil, coverTime: nil)]
}
let media = TelegramMediaFile(fileId: MediaId(namespace: Namespaces.Media.LocalFile, id: Int64.random(in: Int64.min ... Int64.max)), partialReference: nil, resource: resource, previewRepresentations: previewRepresentations, videoThumbnails: [], immediateThumbnailData: nil, mimeType: "video/mp4", size: nil, attributes: fileAttributes)

View File

@ -1892,7 +1892,7 @@ private func infoItems(nearestChatParticipant: (String?, Int32?), showProfileId:
if showProfileId {
items[.swiftgram]!.append(PeerInfoScreenLabeledValueItem(id: sgItemId, label: "id: \(idText)", text: "", textColor: .primary, action: nil, longTapAction: { sourceNode in
interaction.openPeerInfoContextMenu(.copy(idText), sourceNode, nil)
}, requestLayout: {
}, requestLayout: { _ in
interaction.requestLayout(false)
}))
sgItemId += 1
@ -1927,7 +1927,7 @@ private func infoItems(nearestChatParticipant: (String?, Int32?), showProfileId:
if !dcText.isEmpty {
items[.swiftgram]!.append(PeerInfoScreenLabeledValueItem(id: sgItemId, label: "dc: \(dcText)", text: "", textColor: .primary, action: nil, longTapAction: { sourceNode in
interaction.openPeerInfoContextMenu(.aboutDC, sourceNode, nil)
}, requestLayout: {
}, requestLayout: { _ in
interaction.requestLayout(false)
}))
sgItemId += 1
@ -1939,7 +1939,7 @@ private func infoItems(nearestChatParticipant: (String?, Int32?), showProfileId:
let creationDateString = stringForDate(timestamp: channelCreationTimestamp, strings: presentationData.strings)
items[.swiftgram]!.append(PeerInfoScreenLabeledValueItem(id: sgItemId, label: i18n("Chat.Created", presentationData.strings.baseLanguageCode, creationDateString), text: "", action: nil, longTapAction: { sourceNode in
interaction.openPeerInfoContextMenu(.copy(creationDateString), sourceNode, nil)
}, requestLayout: {
}, requestLayout: { _ in
interaction.requestLayout(false)
}))
sgItemId += 1
@ -1950,7 +1950,7 @@ private func infoItems(nearestChatParticipant: (String?, Int32?), showProfileId:
let joinedDateString = stringForDate(timestamp: invitedAt, strings: presentationData.strings)
items[.swiftgram]!.append(PeerInfoScreenLabeledValueItem(id: sgItemId, label: i18n("Chat.JoinedDateTitle", presentationData.strings.baseLanguageCode, nearestChatParticipant.0 ?? "chat") , text: joinedDateString, action: nil, longTapAction: { sourceNode in
interaction.openPeerInfoContextMenu(.copy(joinedDateString), sourceNode, nil)
}, requestLayout: {
}, requestLayout: { _ in
interaction.requestLayout(false)
}))
sgItemId += 1
@ -1970,7 +1970,7 @@ private func infoItems(nearestChatParticipant: (String?, Int32?), showProfileId:
}
items[.swiftgram]!.append(PeerInfoScreenLabeledValueItem(id: sgItemId, label: i18n("Chat.RegDate", presentationData.strings.baseLanguageCode), text: regDateString, action: nil, longTapAction: { sourceNode in
interaction.openPeerInfoContextMenu(.copy(regDateString), sourceNode, nil)
}, requestLayout: {
}, requestLayout: { _ in
interaction.requestLayout(false)
}))
sgItemId += 1