mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various improvements
This commit is contained in:
@@ -296,6 +296,18 @@ func locallyRenderedMessage(message: StoreMessage, peers: AccumulatedPeers, asso
|
||||
public extension Message {
|
||||
func effectivelyIncoming(_ accountPeerId: PeerId) -> Bool {
|
||||
if self.id.peerId == accountPeerId {
|
||||
if let sourceAuthorInfo = self.sourceAuthorInfo {
|
||||
if sourceAuthorInfo.originalOutgoing {
|
||||
return false
|
||||
} else if let originalAuthor = sourceAuthorInfo.originalAuthor, originalAuthor == accountPeerId {
|
||||
return false
|
||||
}
|
||||
} else if let forwardInfo = self.forwardInfo {
|
||||
if let author = forwardInfo.author, author.id == accountPeerId {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
if self.forwardInfo != nil {
|
||||
return true
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user