mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
14 lines
449 B
Swift
14 lines
449 B
Swift
|
|
extension VisibleMessage.Quote {
|
|
|
|
@objc(from:)
|
|
public static func from(_ quote: OWSQuotedReplyModel?) -> VisibleMessage.Quote? {
|
|
guard let quote = quote else { return nil }
|
|
let result = VisibleMessage.Quote()
|
|
result.timestamp = quote.timestamp
|
|
result.publicKey = quote.authorId
|
|
result.text = quote.body
|
|
result.attachmentID = quote.attachmentStream?.uniqueId
|
|
return result
|
|
}
|
|
}
|