mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Fix forum replies
This commit is contained in:
parent
49709e3231
commit
bf68a7db3d
1 changed files with 2 additions and 2 deletions
|
|
@ -1053,7 +1053,7 @@ public final class PendingMessageManager {
|
|||
for attribute in messages[0].0.attributes {
|
||||
if let replyAttribute = attribute as? ReplyMessageAttribute {
|
||||
replyMessageId = replyAttribute.messageId.id
|
||||
if peerId != replyAttribute.messageId.peerId || (replyAttribute.threadMessageId != nil && replyAttribute.threadMessageId?.id != topMsgId) {
|
||||
if peerId != replyAttribute.messageId.peerId || (topMsgId != nil && replyAttribute.threadMessageId != nil && replyAttribute.threadMessageId?.id != topMsgId) {
|
||||
replyPeerId = replyAttribute.messageId.peerId
|
||||
}
|
||||
if replyAttribute.isQuote {
|
||||
|
|
@ -1561,7 +1561,7 @@ public final class PendingMessageManager {
|
|||
for attribute in message.attributes {
|
||||
if let replyAttribute = attribute as? ReplyMessageAttribute {
|
||||
replyMessageId = replyAttribute.messageId.id
|
||||
if peer.id != replyAttribute.messageId.peerId || (replyAttribute.threadMessageId != nil && replyAttribute.threadMessageId?.id != topMsgId) {
|
||||
if peer.id != replyAttribute.messageId.peerId || (topMsgId != nil && replyAttribute.threadMessageId != nil && replyAttribute.threadMessageId?.id != topMsgId) {
|
||||
replyPeerId = replyAttribute.messageId.peerId
|
||||
}
|
||||
if replyAttribute.isQuote {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue