Fixed message replies

This commit is contained in:
Ilya Laktyushin 2019-07-29 03:06:14 +03:00
parent 659d360a65
commit ced5da042d

View File

@ -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>