mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
iPad context menu layout
This commit is contained in:
@@ -16,8 +16,13 @@ func _internal_outgoingMessageWithChatContextResult(to peerId: PeerId, threadId:
|
||||
replyToMessageId = EngineMessageReplySubject(messageId: MessageId(peerId: peerId, namespace: Namespaces.Message.Cloud, id: MessageId.Id(clamping: threadId)), quote: nil)
|
||||
}
|
||||
|
||||
var webpageUrl: String?
|
||||
if case let .webpage(_, _, url, _, _) = result.message {
|
||||
webpageUrl = url
|
||||
}
|
||||
|
||||
var attributes: [MessageAttribute] = []
|
||||
attributes.append(OutgoingChatContextResultMessageAttribute(queryId: result.queryId, id: result.id, hideVia: hideVia))
|
||||
attributes.append(OutgoingChatContextResultMessageAttribute(queryId: result.queryId, id: result.id, hideVia: hideVia, webpageUrl: webpageUrl))
|
||||
if !hideVia {
|
||||
attributes.append(InlineBotMessageAttribute(peerId: botId, title: nil))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user