[WIP] Chat Import

This commit is contained in:
Ali
2021-01-22 01:34:37 +04:00
parent b3740d69b3
commit 428766c75b
10 changed files with 441 additions and 8 deletions

View File

@@ -76,7 +76,13 @@ final class ReplyAccessoryPanelNode: AccessoryPanelNode {
let message = messageView.message
var authorName = ""
var text = ""
if let author = message?.effectiveAuthor {
if let forwardInfo = message?.forwardInfo, forwardInfo.flags.contains(.isImported) {
if let author = forwardInfo.author {
authorName = author.displayTitle(strings: strings, displayOrder: nameDisplayOrder)
} else if let authorSignature = forwardInfo.authorSignature {
authorName = authorSignature
}
} else if let author = message?.effectiveAuthor {
authorName = author.displayTitle(strings: strings, displayOrder: nameDisplayOrder)
}
if let message = message {