mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-29 03:21:29 +00:00
Fixed message replies
This commit is contained in:
parent
659d360a65
commit
ced5da042d
@ -900,20 +900,7 @@ public final class PendingMessageManager {
|
||||
var replyMessageId: Int32?
|
||||
|
||||
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 {
|
||||
if let replyAttribute = attribute as? ReplyMessageAttribute {
|
||||
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 sendMessageRequest: Signal<NetworkRequestResult<Api.Updates>, MTRpcError>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user