File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
submodules/TelegramCore/Sources/PendingMessages Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -561,6 +561,22 @@ private func sendUploadedMultiMessageContent(
561561 attributes: [ MessageAttribute ] ,
562562 threadId: Int64 ?
563563) -> Signal < Never , StandaloneSendMessagesError > {
564+ if content. count == 1 , case let . text( text) = content [ 0 ] . content {
565+ return sendUploadedMessageContent (
566+ auxiliaryMethods: auxiliaryMethods,
567+ postbox: postbox,
568+ network: network,
569+ stateManager: stateManager,
570+ accountPeerId: stateManager. accountPeerId,
571+ peerId: peerId,
572+ content: content [ 0 ] ,
573+ text: text,
574+ attributes: attributes,
575+ media: [ ] ,
576+ threadId: threadId
577+ )
578+ }
579+
564580 return postbox. transaction { transaction -> Signal < Never , StandaloneSendMessagesError > in
565581 if let peer = transaction. getPeer ( peerId) , let inputPeer = apiInputPeer ( peer) {
566582 //var forwardSourceInfoAttribute: ForwardSourceInfoAttribute?
You can’t perform that action at this time.
0 commit comments