fix(client): false negatives in automatic forward detection

This commit is contained in:
alina 🌸 2023-11-14 17:47:07 +03:00
parent 23c4762989
commit 207dc5f15a
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -169,9 +169,9 @@ export class Message {
return Boolean(
this.chat.chatType === 'supergroup' &&
fwd.channelPost &&
fwd.savedFromMsgId &&
fwd.savedFromPeer?._ === 'peerChannel',
fwd.savedFromPeer?._ === 'peerChannel' &&
getMarkedPeerId(fwd.savedFromPeer) !== getMarkedPeerId(this.raw.peerId),
)
}