mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-17 19:09:56 +00:00
15 lines
362 B
Swift
15 lines
362 B
Swift
import Foundation
|
|
import Postbox
|
|
|
|
public extension Message {
|
|
var effectivelyIncoming: Bool {
|
|
if self.flags.contains(.Incoming) {
|
|
return true
|
|
} else if let channel = self.peers[self.id.peerId] as? TelegramChannel, case .broadcast = channel.info {
|
|
return true
|
|
} else {
|
|
return false
|
|
}
|
|
}
|
|
}
|