add text back for smooth migration

This commit is contained in:
Ryan Zhao 2022-07-25 15:04:55 +10:00
parent 185f6ab269
commit cf961d173d

View file

@ -44,6 +44,7 @@ public extension VisibleMessage {
return nil
}
let quoteProto = SNProtoDataMessageQuote.builder(id: timestamp, author: publicKey)
if let text = text { quoteProto.setText(text) }
addAttachmentsIfNeeded(db, to: quoteProto)
do {
return try quoteProto.build()