remove text from quote protobuf

pull/655/head
ryanzhao 3 years ago
parent 3df3114bee
commit 185f6ab269

@ -232,4 +232,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: 6ab902a81a379cc2c0a9a92c334c78d413190338
COCOAPODS: 1.11.3
COCOAPODS: 1.11.2

@ -186,7 +186,6 @@ final class QuoteView: UIView {
}
}()
let bodyLabel = UILabel()
bodyLabel.numberOfLines = 0
bodyLabel.lineBreakMode = .byTruncatingTail
let isOutgoing = (direction == .outgoing)

@ -684,3 +684,4 @@
"SEND_FAILED_NOTIFICATION_BODY" = "Your message failed to send.";
"INVALID_SESSION_ID_MESSAGE" = "Please check the Session ID and try again.";
"INVALID_RECOVERY_PHRASE_MESSAGE" = "Please check the Recovery Phrase and try again.";
"QUOTED_MESSAGE_NOT_FOUND" = "Original message not found.";

@ -100,11 +100,8 @@ public extension Quote {
if let quotedInteraction: Interaction = quotedInteraction, quotedInteraction.body?.isEmpty == false {
self.body = quotedInteraction.body
}
else if let body: String = quoteProto.text, !body.isEmpty {
self.body = body
}
else {
self.body = nil
self.body = "QUOTED_MESSAGE_NOT_FOUND".localized()
}
// We only use the first attachment

@ -44,7 +44,6 @@ 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()

Loading…
Cancel
Save