mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-30 03:44:18 +00:00
Fixed message replies
This commit is contained in:
parent
659d360a65
commit
ced5da042d
@ -901,19 +901,6 @@ public final class PendingMessageManager {
|
|||||||
|
|
||||||
var flags: Int32 = 0
|
var flags: Int32 = 0
|
||||||
|
|
||||||
if case .forward = content.content {
|
|
||||||
|
|
||||||
} else {
|
|
||||||
flags |= (1 << 7)
|
|
||||||
|
|
||||||
if let _ = replyMessageId {
|
|
||||||
flags |= Int32(1 << 0)
|
|
||||||
}
|
|
||||||
if let _ = messageEntities {
|
|
||||||
flags |= Int32(1 << 3)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
for attribute in message.attributes {
|
for attribute in message.attributes {
|
||||||
if let replyAttribute = attribute as? ReplyMessageAttribute {
|
if let replyAttribute = attribute as? ReplyMessageAttribute {
|
||||||
replyMessageId = replyAttribute.messageId.id
|
replyMessageId = replyAttribute.messageId.id
|
||||||
@ -934,6 +921,18 @@ public final class PendingMessageManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if case .forward = content.content {
|
||||||
|
} else {
|
||||||
|
flags |= (1 << 7)
|
||||||
|
|
||||||
|
if let _ = replyMessageId {
|
||||||
|
flags |= Int32(1 << 0)
|
||||||
|
}
|
||||||
|
if let _ = messageEntities {
|
||||||
|
flags |= Int32(1 << 3)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
let dependencyTag = PendingMessageRequestDependencyTag(messageId: messageId)
|
let dependencyTag = PendingMessageRequestDependencyTag(messageId: messageId)
|
||||||
|
|
||||||
let sendMessageRequest: Signal<NetworkRequestResult<Api.Updates>, MTRpcError>
|
let sendMessageRequest: Signal<NetworkRequestResult<Api.Updates>, MTRpcError>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user