mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Various improvements
This commit is contained in:
parent
1d7bf5aa12
commit
d8e5ff4f58
13 changed files with 212 additions and 25 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue