Don't treat outgoing messages as incoming

This commit is contained in:
Ali 2023-11-02 18:18:46 +04:00
parent a90ad33209
commit 6bddf8ac47

View File

@ -287,6 +287,8 @@ public extension Message {
} else {
return false
}
} else if self.author?.id == accountPeerId {
return false
} else if self.flags.contains(.Incoming) {
return true
} else if let channel = self.peers[self.id.peerId] as? TelegramChannel, case .broadcast = channel.info {