mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-05 05:51:42 +00:00
Maybe fix thread ids
This commit is contained in:
parent
ff74248427
commit
5957555813
@ -599,21 +599,19 @@ extension StoreMessage {
|
|||||||
if let replyToTopId = replyToTopId {
|
if let replyToTopId = replyToTopId {
|
||||||
if peerIsForum {
|
if peerIsForum {
|
||||||
if isForumTopic {
|
if isForumTopic {
|
||||||
let threadIdValue = MessageId(peerId: replyPeerId, namespace: Namespaces.Message.Cloud, id: replyToTopId)
|
let threadIdValue = MessageId(peerId: peerId, namespace: Namespaces.Message.Cloud, id: replyToTopId)
|
||||||
threadMessageId = threadIdValue
|
threadMessageId = threadIdValue
|
||||||
if replyPeerId == peerId {
|
if replyPeerId == peerId {
|
||||||
threadId = makeMessageThreadId(threadIdValue)
|
threadId = makeMessageThreadId(threadIdValue)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
let threadIdValue = MessageId(peerId: replyPeerId, namespace: Namespaces.Message.Cloud, id: replyToTopId)
|
let threadIdValue = MessageId(peerId: peerId, namespace: Namespaces.Message.Cloud, id: replyToTopId)
|
||||||
threadMessageId = threadIdValue
|
threadMessageId = threadIdValue
|
||||||
if replyPeerId == peerId {
|
|
||||||
threadId = makeMessageThreadId(threadIdValue)
|
threadId = makeMessageThreadId(threadIdValue)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else if peerId.namespace == Namespaces.Peer.CloudChannel {
|
} else if peerId.namespace == Namespaces.Peer.CloudChannel {
|
||||||
let threadIdValue = MessageId(peerId: replyPeerId, namespace: Namespaces.Message.Cloud, id: replyToMsgId)
|
let threadIdValue = MessageId(peerId: peerId, namespace: Namespaces.Message.Cloud, id: replyToMsgId)
|
||||||
|
|
||||||
if peerIsForum {
|
if peerIsForum {
|
||||||
if isForumTopic {
|
if isForumTopic {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user