Fix highlight comment rendering
Closes: https://github.com/damus-io/damus/issues/3129 Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
This commit is contained in:
@@ -120,6 +120,9 @@ struct NdbBlockGroup: ~Copyable {
|
|||||||
if event.is_content_encrypted() {
|
if event.is_content_encrypted() {
|
||||||
return try parse(event: event, keypair: keypair)
|
return try parse(event: event, keypair: keypair)
|
||||||
}
|
}
|
||||||
|
else if event.known_kind == .highlight {
|
||||||
|
return try parse(event: event, keypair: keypair)
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
guard let offsets = event.block_offsets(ndb: ndb) else {
|
guard let offsets = event.block_offsets(ndb: ndb) else {
|
||||||
return try parse(event: event, keypair: keypair)
|
return try parse(event: event, keypair: keypair)
|
||||||
|
|||||||
@@ -489,6 +489,9 @@ extension NdbNote {
|
|||||||
if is_content_encrypted() {
|
if is_content_encrypted() {
|
||||||
return decrypted(keypair: keypair)
|
return decrypted(keypair: keypair)
|
||||||
}
|
}
|
||||||
|
else if known_kind == .highlight {
|
||||||
|
return self.referenced_comment_items.first?.content
|
||||||
|
}
|
||||||
|
|
||||||
return content
|
return content
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user