mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Add back changes
This commit is contained in:
@@ -156,6 +156,18 @@ public func stringForMessageTimestampStatus(accountPeerId: PeerId, message: Mess
|
||||
}
|
||||
}
|
||||
|
||||
if authorTitle == nil {
|
||||
for attribute in message.attributes {
|
||||
if let attribute = attribute as? InlineBusinessBotMessageAttribute {
|
||||
if let title = attribute.title {
|
||||
authorTitle = title
|
||||
} else if let peerId = attribute.peerId, let peer = message.peers[peerId] {
|
||||
authorTitle = peer.debugDisplayTitle
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if let subject = associatedData.subject, case let .messageOptions(_, _, info) = subject, case .forward = info {
|
||||
authorTitle = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user